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        android:background="?color_background_secondary">
 10
 11        <LinearLayout
 12            android:id="@+id/pip_placeholder"
 13            android:layout_width="match_parent"
 14            android:layout_height="match_parent"
 15            android:background="@color/black"
 16            android:gravity="center"
 17            android:orientation="horizontal"
 18            android:visibility="gone">
 19
 20            <ProgressBar
 21                android:id="@+id/pip_waiting"
 22                android:layout_width="wrap_content"
 23                android:layout_height="wrap_content"
 24                android:indeterminate="true"
 25                android:indeterminateOnly="true"
 26                android:indeterminateTint="@color/white"
 27                android:visibility="gone" />
 28
 29            <ImageView
 30                android:id="@+id/pip_warning"
 31                android:layout_width="wrap_content"
 32                android:layout_height="wrap_content"
 33                android:src="@drawable/ic_warning_white_48dp"
 34                android:visibility="gone" />
 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            <androidx.appcompat.widget.Toolbar
 44                android:id="@+id/toolbar"
 45                android:layout_width="match_parent"
 46                android:layout_height="?attr/actionBarSize"
 47                android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
 48                app:popupTheme="?popupOverlayStyle" />
 49
 50            <TextView
 51                android:id="@+id/with"
 52                android:layout_width="wrap_content"
 53                android:layout_height="wrap_content"
 54                android:layout_below="@id/status"
 55                android:layout_marginLeft="16dp"
 56                android:layout_marginTop="0dp"
 57                android:layout_marginRight="16dp"
 58                android:layout_marginBottom="32dp"
 59                android:textAppearance="@style/TextAppearance.Conversations.Display2"
 60                android:textColor="@color/white"
 61                tools:text="Juliet Capulet" />
 62
 63        </com.google.android.material.appbar.AppBarLayout>
 64
 65        <RelativeLayout
 66            android:layout_width="match_parent"
 67            android:layout_height="wrap_content"
 68            android:layout_above="@+id/button_row"
 69            android:layout_below="@id/app_bar_layout">
 70
 71            <TextView
 72                android:id="@+id/duration"
 73                android:layout_width="wrap_content"
 74                android:layout_height="wrap_content"
 75                android:layout_centerHorizontal="true"
 76                android:layout_margin="24dp"
 77                android:textAppearance="@style/TextAppearance.Conversations.Title.Monospace"
 78                tools:text="01:23" />
 79
 80            <com.makeramen.roundedimageview.RoundedImageView
 81                android:id="@+id/contact_photo"
 82                android:layout_width="@dimen/publish_avatar_size"
 83                android:layout_height="@dimen/publish_avatar_size"
 84                android:layout_centerInParent="true"
 85                app:riv_corner_radius="@dimen/incoming_call_radius" />
 86
 87        </RelativeLayout>
 88
 89        <org.webrtc.SurfaceViewRenderer
 90            android:id="@+id/local_video"
 91            android:layout_width="@dimen/local_video_preview_width"
 92            android:layout_height="@dimen/local_video_preview_height"
 93            android:layout_below="@+id/app_bar_layout"
 94            android:layout_alignParentEnd="true"
 95            android:layout_marginTop="24dp"
 96            android:layout_marginEnd="24dp"
 97            android:visibility="gone"
 98            app:elevation="4dp" />
 99
100        <org.webrtc.SurfaceViewRenderer
101            android:id="@+id/remote_video"
102            android:layout_width="match_parent"
103            android:layout_height="match_parent"
104            android:layout_below="@+id/app_bar_layout"
105            android:layout_alignParentStart="true"
106            android:layout_alignParentBottom="true"
107            android:visibility="gone" />
108
109        <ImageView
110            android:id="@+id/verified"
111            android:layout_width="wrap_content"
112            android:layout_height="wrap_content"
113            android:layout_below="@+id/app_bar_layout"
114            android:layout_alignParentStart="true"
115            android:layout_marginTop="24dp"
116            android:layout_marginStart="16dp"
117            android:alpha="0.7"
118            android:src="@drawable/ic_verified_fingerprint" />
119
120        <ImageView
121            android:id="@+id/pip_local_mic_off_indicator"
122            android:layout_width="wrap_content"
123            android:layout_height="wrap_content"
124            android:layout_alignParentEnd="true"
125            android:layout_alignParentBottom="true"
126            android:layout_margin="8dp"
127            android:alpha="0.7"
128            android:src="@drawable/ic_mic_off_black_24dp"
129            android:visibility="gone"
130            app:tint="@color/white" />
131
132        <RelativeLayout
133            android:id="@+id/button_row"
134            android:layout_width="match_parent"
135            android:layout_height="wrap_content"
136            android:layout_alignParentBottom="true"
137            android:layout_centerHorizontal="true"
138            android:layout_marginBottom="24dp">
139
140            <RelativeLayout
141                android:layout_width="288dp"
142                android:layout_height="wrap_content"
143                android:layout_centerInParent="true">
144
145                <com.google.android.material.floatingactionbutton.FloatingActionButton
146                    android:id="@+id/reject_call"
147                    android:layout_width="wrap_content"
148                    android:layout_height="wrap_content"
149                    android:layout_alignParentStart="true"
150                    android:layout_margin="16dp"
151                    android:src="@drawable/ic_call_end_white_48dp"
152                    android:visibility="gone"
153                    app:backgroundTint="@color/red700"
154                    app:elevation="4dp"
155                    app:fabCustomSize="72dp"
156                    app:maxImageSize="36dp"
157                    tools:visibility="visible" />
158
159                <com.google.android.material.floatingactionbutton.FloatingActionButton
160                    android:id="@+id/accept_call"
161                    android:layout_width="wrap_content"
162                    android:layout_height="wrap_content"
163                    android:layout_alignParentEnd="true"
164                    android:layout_centerVertical="true"
165                    android:layout_margin="16dp"
166                    android:src="@drawable/ic_call_white_48dp"
167                    android:visibility="gone"
168                    app:backgroundTint="@color/green700"
169                    app:elevation="4dp"
170                    app:fabCustomSize="72dp"
171                    app:maxImageSize="36dp"
172                    tools:visibility="visible" />
173
174            </RelativeLayout>
175
176            <com.google.android.material.floatingactionbutton.FloatingActionButton
177                android:id="@+id/in_call_action_left"
178                android:layout_width="wrap_content"
179                android:layout_height="wrap_content"
180                android:layout_centerVertical="true"
181                android:layout_margin="@dimen/in_call_fab_margin"
182                android:layout_toStartOf="@+id/end_call"
183                android:visibility="gone"
184                app:backgroundTint="?color_background_primary"
185                app:elevation="4dp"
186                app:fabSize="mini"
187                app:tint="?attr/icon_tint" />
188
189            <com.google.android.material.floatingactionbutton.FloatingActionButton
190                android:id="@+id/end_call"
191                android:layout_width="wrap_content"
192                android:layout_height="wrap_content"
193                android:layout_centerInParent="true"
194                android:layout_margin="@dimen/in_call_fab_margin_center"
195                android:src="@drawable/ic_call_end_white_48dp"
196                android:visibility="visible"
197                app:backgroundTint="@color/red700"
198                app:elevation="4dp"
199                app:fabCustomSize="72dp"
200                app:maxImageSize="36dp" />
201
202            <com.google.android.material.floatingactionbutton.FloatingActionButton
203                android:id="@+id/in_call_action_right"
204                android:layout_width="wrap_content"
205                android:layout_height="wrap_content"
206                android:layout_centerVertical="true"
207                android:layout_margin="@dimen/in_call_fab_margin"
208                android:layout_toEndOf="@+id/end_call"
209                android:visibility="gone"
210                app:backgroundTint="?color_background_primary"
211                app:elevation="4dp"
212                app:fabSize="mini"
213                app:tint="?attr/icon_tint" />
214
215            <com.google.android.material.floatingactionbutton.FloatingActionButton
216                android:id="@+id/in_call_action_far_right"
217                android:layout_width="wrap_content"
218                android:layout_height="wrap_content"
219                android:layout_centerVertical="true"
220                android:layout_margin="@dimen/in_call_fab_margin"
221                android:layout_toEndOf="@+id/in_call_action_right"
222                android:visibility="gone"
223                app:backgroundTint="?color_background_primary"
224                app:elevation="4dp"
225                app:fabSize="mini"
226                app:tint="?attr/icon_tint" />
227        </RelativeLayout>
228
229    </RelativeLayout>
230</layout>