1<?xml version="1.0" encoding="utf-8"?>
2<layout xmlns:android="http://schemas.android.com/apk/res/android"
3 xmlns:app="http://schemas.android.com/apk/res-auto"
4 xmlns:tools="http://schemas.android.com/tools">
5
6 <RelativeLayout
7 android:layout_width="match_parent"
8 android:layout_height="match_parent">
9
10 <LinearLayout
11 android:id="@+id/pip_placeholder"
12 android:layout_width="match_parent"
13 android:layout_height="match_parent"
14 android:background="@android:color/black"
15 android:gravity="center"
16 android:orientation="horizontal"
17 android:visibility="gone">
18
19 <ProgressBar
20 android:id="@+id/pip_waiting"
21 android:layout_width="wrap_content"
22 android:layout_height="wrap_content"
23 android:indeterminate="true"
24 android:indeterminateOnly="true"
25 android:indeterminateTint="@android:color/white"
26 android:visibility="gone" />
27
28 <ImageView
29 android:id="@+id/pip_warning"
30 android:layout_width="48dp"
31 android:layout_height="48dp"
32 android:src="@drawable/ic_warning_24dp"
33 android:visibility="gone"
34 app:tint="@android:color/white" />
35 </LinearLayout>
36
37 <com.google.android.material.appbar.AppBarLayout
38 android:id="@+id/app_bar_layout"
39 android:layout_width="match_parent"
40 android:layout_height="wrap_content"
41 android:visibility="visible">
42
43 <com.google.android.material.appbar.MaterialToolbar
44 android:id="@+id/toolbar"
45 android:layout_width="match_parent"
46 android:layout_height="?attr/actionBarSize" />
47
48 <TextView
49 android:id="@+id/with"
50 android:layout_width="wrap_content"
51 android:layout_height="wrap_content"
52 android:layout_marginLeft="16dp"
53 android:layout_marginRight="16dp"
54 android:textAppearance="?textAppearanceDisplayLarge"
55 tools:text="Juliet Capulet" />
56
57 <TextView
58 android:id="@+id/with_jid"
59 android:layout_width="wrap_content"
60 android:layout_height="wrap_content"
61 android:layout_marginLeft="16dp"
62 android:layout_marginTop="8dp"
63 android:layout_marginRight="16dp"
64 android:textAppearance="?textAppearanceBodyMedium"
65 android:visibility="visible"
66 tools:text="jcapulet@example.com" />
67
68 <View
69 android:layout_width="match_parent"
70 android:layout_height="32dp" />
71
72 </com.google.android.material.appbar.AppBarLayout>
73
74 <RelativeLayout
75 android:layout_width="match_parent"
76 android:layout_height="wrap_content"
77 android:layout_above="@+id/button_row"
78 android:layout_below="@id/app_bar_layout">
79
80 <TextView
81 android:id="@+id/duration"
82 android:layout_width="wrap_content"
83 android:layout_height="wrap_content"
84 android:layout_centerHorizontal="true"
85 android:layout_marginTop="@dimen/rtp_session_duration_top_margin"
86 android:fontFamily="monospace"
87 android:textAppearance="?textAppearanceTitleLarge"
88 tools:text="01:23" />
89
90 <eu.siacs.conversations.ui.widget.DialpadView
91 layout="@layout/dialpad"
92 android:id="@+id/dialpad"
93 android:layout_width="match_parent"
94 android:layout_height="wrap_content"
95 android:layout_alignParentBottom="true"
96 android:visibility="gone" />
97
98 <com.google.android.material.imageview.ShapeableImageView
99 android:id="@+id/contact_photo"
100 android:layout_width="@dimen/publish_avatar_size"
101 android:layout_height="@dimen/publish_avatar_size"
102 android:layout_centerInParent="true"
103 app:shapeAppearance="@style/ShapeAppearanceOverlay.IncomingCall" />
104
105 </RelativeLayout>
106
107
108 <LinearLayout
109 android:id="@+id/remote_video_wrapper"
110 android:layout_width="match_parent"
111 android:layout_height="match_parent"
112 android:layout_below="@+id/app_bar_layout"
113 android:layout_alignParentStart="true"
114 android:layout_alignParentBottom="true"
115 android:background="@android:color/black"
116 android:gravity="center"
117 android:visibility="gone">
118
119 <eu.siacs.conversations.ui.widget.SurfaceViewRenderer
120 android:id="@+id/remote_video"
121 android:layout_width="wrap_content"
122 android:layout_height="wrap_content" />
123 </LinearLayout>
124
125 <eu.siacs.conversations.ui.widget.SurfaceViewRenderer
126 android:id="@+id/local_video"
127 android:layout_width="@dimen/local_video_preview_width"
128 android:layout_height="@dimen/local_video_preview_height"
129 android:layout_below="@+id/app_bar_layout"
130 android:layout_alignParentEnd="true"
131 android:layout_marginTop="24dp"
132 android:layout_marginEnd="24dp"
133 android:visibility="gone"
134 app:elevation="4dp" />
135
136 <ImageView
137 android:id="@+id/verified"
138 android:layout_width="40dp"
139 android:layout_height="40dp"
140 android:layout_below="@+id/app_bar_layout"
141 android:layout_alignParentStart="true"
142 android:layout_marginStart="16dp"
143 android:layout_marginTop="@dimen/rtp_session_duration_top_margin"
144 android:alpha="0.7"
145 android:src="@drawable/ic_verified_user_24dp"
146 app:tint="@color/light_green_600" />
147
148 <ImageView
149 android:id="@+id/pip_local_mic_off_indicator"
150 android:layout_width="wrap_content"
151 android:layout_height="wrap_content"
152 android:layout_alignParentEnd="true"
153 android:layout_alignParentBottom="true"
154 android:layout_margin="8dp"
155 android:alpha="0.7"
156 android:src="@drawable/ic_mic_off_24dp"
157 android:visibility="gone"
158 app:tint="@android:color/white" />
159
160 <RelativeLayout
161 android:id="@+id/button_row"
162 android:layout_width="match_parent"
163 android:layout_height="wrap_content"
164 android:layout_alignParentBottom="true"
165 android:layout_centerHorizontal="true"
166 android:layout_marginBottom="24dp">
167
168 <RelativeLayout
169 android:layout_width="288dp"
170 android:layout_height="wrap_content"
171 android:layout_centerInParent="true">
172
173 <com.google.android.material.floatingactionbutton.FloatingActionButton
174 android:id="@+id/reject_call"
175 android:layout_width="wrap_content"
176 android:layout_height="wrap_content"
177 android:layout_alignParentStart="true"
178 android:layout_margin="16dp"
179 android:src="@drawable/ic_call_end_24dp"
180 android:visibility="gone"
181 app:backgroundTint="?colorError"
182 app:elevation="4dp"
183 app:fabCustomSize="72dp"
184 app:maxImageSize="36dp"
185 app:tint="?colorOnError"
186 tools:visibility="visible" />
187
188 <com.google.android.material.floatingactionbutton.FloatingActionButton
189 android:id="@+id/accept_call"
190 android:layout_width="wrap_content"
191 android:layout_height="wrap_content"
192 android:layout_alignParentEnd="true"
193 android:layout_centerVertical="true"
194 android:layout_margin="16dp"
195 android:src="@drawable/ic_call_24dp"
196 android:visibility="gone"
197 app:backgroundTint="?colorPrimary"
198 app:elevation="4dp"
199 app:fabCustomSize="72dp"
200 app:maxImageSize="36dp"
201 app:tint="?colorOnPrimary"
202 tools:visibility="visible" />
203
204 </RelativeLayout>
205
206 <com.google.android.material.floatingactionbutton.FloatingActionButton
207 android:id="@+id/in_call_action_left"
208 style="?attr/floatingActionButtonSmallSurfaceStyle"
209 android:layout_width="wrap_content"
210 android:layout_height="wrap_content"
211 android:layout_centerVertical="true"
212 android:layout_margin="@dimen/in_call_fab_margin"
213 android:layout_toStartOf="@+id/end_call"
214 android:visibility="gone" />
215
216 <com.google.android.material.floatingactionbutton.FloatingActionButton
217 android:id="@+id/end_call"
218 android:layout_width="wrap_content"
219 android:layout_height="wrap_content"
220 android:layout_centerInParent="true"
221 android:layout_margin="@dimen/in_call_fab_margin_center"
222 android:src="@drawable/ic_call_end_24dp"
223 android:visibility="visible"
224 app:backgroundTint="?colorError"
225 app:elevation="4dp"
226 app:fabCustomSize="72dp"
227 app:maxImageSize="36dp"
228 app:tint="?colorOnError" />
229
230 <com.google.android.material.floatingactionbutton.FloatingActionButton
231 android:id="@+id/in_call_action_right"
232 style="?attr/floatingActionButtonSmallSurfaceStyle"
233 android:layout_width="wrap_content"
234 android:layout_height="wrap_content"
235 android:layout_centerVertical="true"
236 android:layout_margin="@dimen/in_call_fab_margin"
237 android:layout_toEndOf="@+id/end_call"
238 android:visibility="gone" />
239
240 <com.google.android.material.floatingactionbutton.FloatingActionButton
241 android:id="@+id/in_call_action_far_right"
242 style="?attr/floatingActionButtonSmallSurfaceStyle"
243 android:layout_width="wrap_content"
244 android:layout_height="wrap_content"
245 android:layout_centerVertical="true"
246 android:layout_margin="@dimen/in_call_fab_margin"
247 android:layout_toEndOf="@+id/in_call_action_right"
248 android:visibility="gone" />
249 </RelativeLayout>
250
251 <TextView
252 android:id="@+id/using_account"
253 android:layout_width="wrap_content"
254 android:layout_height="wrap_content"
255 android:layout_alignParentEnd="true"
256 android:layout_alignParentBottom="true"
257 android:layout_margin="8dp"
258 android:text="@string/using_account"
259 android:textAppearance="?textAppearanceLabelMedium" />
260
261 </RelativeLayout>
262</layout>