speaker_view.xml
3.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/no_video_background">
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/no_video_background"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<ImageView
android:layout_width="60dp"
android:layout_height="60dp"
android:layout_gravity="center"
android:src="@drawable/outline_videocam_off_24"
app:tint="@color/no_video_participant" />
<io.livekit.android.renderer.TextureViewRenderer
android:id="@+id/renderer"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<ImageView
android:id="@+id/connection_quality"
android:layout_width="24dp"
android:layout_height="24dp"
android:layout_gravity="top|end"
android:layout_marginTop="@dimen/identity_bar_padding"
android:layout_marginEnd="@dimen/identity_bar_padding"
android:alpha="0.5"
android:src="@drawable/wifi_strength_1"
android:visibility="invisible"
app:tint="#FF0000" />
<ImageView
android:id="@+id/speaking_indicator"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:src="@drawable/speaker_indicator"
android:visibility="invisible" />
</FrameLayout>
<FrameLayout
android:id="@+id/identity_bar"
android:layout_width="0dp"
android:layout_height="30dp"
android:background="#80000000"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" />
<ImageView
android:id="@+id/mute_indicator"
android:layout_width="24dp"
android:layout_height="24dp"
android:layout_marginEnd="@dimen/identity_bar_padding"
android:src="@drawable/outline_mic_off_24"
android:visibility="gone"
app:layout_constraintBottom_toBottomOf="@id/identity_bar"
app:layout_constraintEnd_toEndOf="@id/identity_bar"
app:layout_constraintTop_toTopOf="@id/identity_bar"
app:tint="#BB0000" />
<TextView
android:id="@+id/identity_text"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/identity_bar_padding"
android:ellipsize="end"
app:layout_constraintBottom_toBottomOf="@id/identity_bar"
app:layout_constraintEnd_toStartOf="@id/mute_indicator"
app:layout_constraintStart_toStartOf="@id/identity_bar"
app:layout_constraintTop_toTopOf="@id/identity_bar" />
</androidx.constraintlayout.widget.ConstraintLayout>