activity_rtp_session.xml

  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
 73        </com.google.android.material.appbar.AppBarLayout>
 74
 75        <RelativeLayout
 76            android:layout_width="match_parent"
 77            android:layout_height="wrap_content"
 78            android:layout_above="@+id/button_row"
 79            android:layout_below="@id/app_bar_layout">
 80
 81            <TextView
 82                android:id="@+id/duration"
 83                android:layout_width="wrap_content"
 84                android:layout_height="wrap_content"
 85                android:layout_centerHorizontal="true"
 86                android:layout_marginTop="@dimen/rtp_session_duration_top_margin"
 87                android:fontFamily="monospace"
 88                android:textAppearance="?textAppearanceTitleLarge"
 89                tools:text="01:23" />
 90
 91            <com.makeramen.roundedimageview.RoundedImageView
 92                android:id="@+id/contact_photo"
 93                android:layout_width="@dimen/publish_avatar_size"
 94                android:layout_height="@dimen/publish_avatar_size"
 95                android:layout_centerInParent="true"
 96                app:riv_corner_radius="@dimen/incoming_call_radius" />
 97
 98        </RelativeLayout>
 99
100
101        <LinearLayout
102            android:id="@+id/remote_video_wrapper"
103            android:layout_width="match_parent"
104            android:layout_height="match_parent"
105            android:layout_below="@+id/app_bar_layout"
106            android:layout_alignParentStart="true"
107            android:layout_alignParentBottom="true"
108            android:background="@android:color/black"
109            android:gravity="center"
110            android:visibility="gone">
111
112            <eu.siacs.conversations.ui.widget.SurfaceViewRenderer
113                android:id="@+id/remote_video"
114                android:layout_width="wrap_content"
115                android:layout_height="wrap_content" />
116        </LinearLayout>
117
118        <eu.siacs.conversations.ui.widget.SurfaceViewRenderer
119            android:id="@+id/local_video"
120            android:layout_width="@dimen/local_video_preview_width"
121            android:layout_height="@dimen/local_video_preview_height"
122            android:layout_below="@+id/app_bar_layout"
123            android:layout_alignParentEnd="true"
124            android:layout_marginTop="24dp"
125            android:layout_marginEnd="24dp"
126            android:visibility="gone"
127            app:elevation="4dp" />
128
129        <ImageView
130            android:id="@+id/verified"
131            android:layout_width="40dp"
132            android:layout_height="40dp"
133            android:layout_below="@+id/app_bar_layout"
134            android:layout_alignParentStart="true"
135            android:layout_marginStart="16dp"
136            android:layout_marginTop="@dimen/rtp_session_duration_top_margin"
137            android:alpha="0.7"
138            android:src="@drawable/ic_verified_user_24dp"
139            app:tint="@color/light_green_600" />
140
141        <ImageView
142            android:id="@+id/pip_local_mic_off_indicator"
143            android:layout_width="wrap_content"
144            android:layout_height="wrap_content"
145            android:layout_alignParentEnd="true"
146            android:layout_alignParentBottom="true"
147            android:layout_margin="8dp"
148            android:alpha="0.7"
149            android:src="@drawable/ic_mic_off_24dp"
150            android:visibility="gone"
151            app:tint="@android:color/white" />
152
153        <RelativeLayout
154            android:id="@+id/button_row"
155            android:layout_width="match_parent"
156            android:layout_height="wrap_content"
157            android:layout_alignParentBottom="true"
158            android:layout_centerHorizontal="true"
159            android:layout_marginBottom="24dp">
160
161            <RelativeLayout
162                android:layout_width="288dp"
163                android:layout_height="wrap_content"
164                android:layout_centerInParent="true">
165
166                <com.google.android.material.floatingactionbutton.FloatingActionButton
167                    android:id="@+id/reject_call"
168                    android:layout_width="wrap_content"
169                    android:layout_height="wrap_content"
170                    android:layout_alignParentStart="true"
171                    android:layout_margin="16dp"
172                    android:src="@drawable/ic_call_end_24dp"
173                    android:visibility="gone"
174                    app:backgroundTint="?colorError"
175                    app:elevation="4dp"
176                    app:fabCustomSize="72dp"
177                    app:maxImageSize="36dp"
178                    app:tint="?colorOnError"
179                    tools:visibility="visible" />
180
181                <com.google.android.material.floatingactionbutton.FloatingActionButton
182                    android:id="@+id/accept_call"
183                    android:layout_width="wrap_content"
184                    android:layout_height="wrap_content"
185                    android:layout_alignParentEnd="true"
186                    android:layout_centerVertical="true"
187                    android:layout_margin="16dp"
188                    android:src="@drawable/ic_call_24dp"
189                    android:visibility="gone"
190                    app:backgroundTint="?colorPrimary"
191                    app:elevation="4dp"
192                    app:fabCustomSize="72dp"
193                    app:maxImageSize="36dp"
194                    app:tint="?colorOnPrimary"
195                    tools:visibility="visible" />
196
197            </RelativeLayout>
198
199            <com.google.android.material.floatingactionbutton.FloatingActionButton
200                android:id="@+id/in_call_action_left"
201                style="?attr/floatingActionButtonSmallSurfaceStyle"
202                android:layout_width="wrap_content"
203                android:layout_height="wrap_content"
204                android:layout_centerVertical="true"
205                android:layout_margin="@dimen/in_call_fab_margin"
206                android:layout_toStartOf="@+id/end_call"
207                android:visibility="gone" />
208
209            <com.google.android.material.floatingactionbutton.FloatingActionButton
210                android:id="@+id/end_call"
211                android:layout_width="wrap_content"
212                android:layout_height="wrap_content"
213                android:layout_centerInParent="true"
214                android:layout_margin="@dimen/in_call_fab_margin_center"
215                android:src="@drawable/ic_call_end_24dp"
216                android:visibility="visible"
217                app:backgroundTint="?colorError"
218                app:elevation="4dp"
219                app:fabCustomSize="72dp"
220                app:maxImageSize="36dp"
221                app:tint="?colorOnError" />
222
223            <com.google.android.material.floatingactionbutton.FloatingActionButton
224                android:id="@+id/in_call_action_right"
225                style="?attr/floatingActionButtonSmallSurfaceStyle"
226                android:layout_width="wrap_content"
227                android:layout_height="wrap_content"
228                android:layout_centerVertical="true"
229                android:layout_margin="@dimen/in_call_fab_margin"
230                android:layout_toEndOf="@+id/end_call"
231                android:visibility="gone" />
232
233            <com.google.android.material.floatingactionbutton.FloatingActionButton
234                android:id="@+id/in_call_action_far_right"
235                style="?attr/floatingActionButtonSmallSurfaceStyle"
236                android:layout_width="wrap_content"
237                android:layout_height="wrap_content"
238                android:layout_centerVertical="true"
239                android:layout_margin="@dimen/in_call_fab_margin"
240                android:layout_toEndOf="@+id/in_call_action_right"
241                android:visibility="gone" />
242        </RelativeLayout>
243
244        <TextView
245            android:id="@+id/using_account"
246            android:layout_width="wrap_content"
247            android:layout_height="wrap_content"
248            android:layout_alignParentEnd="true"
249            android:layout_alignParentBottom="true"
250            android:layout_margin="8dp"
251            android:text="@string/using_account"
252            android:textAppearance="?textAppearanceLabelMedium" />
253
254    </RelativeLayout>
255</layout>