2020-04-07 09:36:28 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<layout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools">
|
|
|
|
|
|
|
|
<RelativeLayout
|
|
|
|
android:layout_width="match_parent"
|
2020-04-13 10:02:34 +00:00
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:background="?color_background_secondary">
|
2020-04-07 09:36:28 +00:00
|
|
|
|
2020-04-16 15:38:05 +00:00
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/pip_placeholder"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:background="@color/black"
|
|
|
|
android:gravity="center"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:visibility="gone">
|
|
|
|
|
2020-04-17 09:44:20 +00:00
|
|
|
<ProgressBar
|
|
|
|
android:id="@+id/pip_waiting"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:indeterminate="true"
|
|
|
|
android:indeterminateOnly="true"
|
|
|
|
android:indeterminateTint="@color/white"
|
|
|
|
android:visibility="gone" />
|
|
|
|
|
2020-04-16 15:38:05 +00:00
|
|
|
<ImageView
|
|
|
|
android:id="@+id/pip_warning"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2020-04-17 09:44:20 +00:00
|
|
|
android:src="@drawable/ic_warning_white_48dp"
|
|
|
|
android:visibility="gone" />
|
2020-04-16 15:38:05 +00:00
|
|
|
</LinearLayout>
|
|
|
|
|
2021-01-18 17:26:46 +00:00
|
|
|
<com.google.android.material.appbar.AppBarLayout
|
2020-04-14 17:06:39 +00:00
|
|
|
android:id="@+id/app_bar_layout"
|
2020-04-07 09:36:28 +00:00
|
|
|
android:layout_width="match_parent"
|
2020-04-15 22:08:58 +00:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:visibility="visible">
|
2020-04-07 14:17:29 +00:00
|
|
|
|
2021-01-18 17:26:46 +00:00
|
|
|
<androidx.appcompat.widget.Toolbar
|
2020-04-14 17:35:26 +00:00
|
|
|
android:id="@+id/toolbar"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="?attr/actionBarSize"
|
|
|
|
android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
|
|
|
|
app:popupTheme="?popupOverlayStyle" />
|
2020-04-07 14:17:29 +00:00
|
|
|
|
2020-04-07 09:36:28 +00:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/with"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2020-04-07 14:17:29 +00:00
|
|
|
android:layout_below="@id/status"
|
2020-04-14 17:35:26 +00:00
|
|
|
android:layout_marginLeft="16dp"
|
|
|
|
android:layout_marginTop="0dp"
|
|
|
|
android:layout_marginRight="16dp"
|
|
|
|
android:layout_marginBottom="32dp"
|
2020-04-07 09:36:28 +00:00
|
|
|
android:textAppearance="@style/TextAppearance.Conversations.Display2"
|
2020-04-07 14:17:29 +00:00
|
|
|
android:textColor="@color/white"
|
|
|
|
tools:text="Juliet Capulet" />
|
|
|
|
|
2021-01-18 17:26:46 +00:00
|
|
|
</com.google.android.material.appbar.AppBarLayout>
|
2020-04-07 09:36:28 +00:00
|
|
|
|
2020-05-09 09:14:39 +00:00
|
|
|
<RelativeLayout
|
2020-04-20 11:41:50 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_above="@+id/button_row"
|
2020-05-09 09:14:39 +00:00
|
|
|
android:layout_below="@id/app_bar_layout">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/duration"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_centerHorizontal="true"
|
|
|
|
android:layout_margin="24dp"
|
|
|
|
android:textAppearance="@style/TextAppearance.Conversations.Title.Monospace"
|
|
|
|
tools:text="01:23" />
|
2020-04-20 11:41:50 +00:00
|
|
|
|
|
|
|
<com.makeramen.roundedimageview.RoundedImageView
|
|
|
|
android:id="@+id/contact_photo"
|
|
|
|
android:layout_width="@dimen/publish_avatar_size"
|
|
|
|
android:layout_height="@dimen/publish_avatar_size"
|
2020-05-09 09:14:39 +00:00
|
|
|
android:layout_centerInParent="true"
|
2020-04-20 11:41:50 +00:00
|
|
|
app:riv_corner_radius="@dimen/incoming_call_radius" />
|
|
|
|
|
2020-05-09 09:14:39 +00:00
|
|
|
</RelativeLayout>
|
2020-04-20 11:41:50 +00:00
|
|
|
|
2020-04-17 13:06:13 +00:00
|
|
|
|
2020-04-14 17:06:39 +00:00
|
|
|
<org.webrtc.SurfaceViewRenderer
|
|
|
|
android:id="@+id/local_video"
|
2020-04-15 22:08:58 +00:00
|
|
|
android:layout_width="@dimen/local_video_preview_width"
|
|
|
|
android:layout_height="@dimen/local_video_preview_height"
|
2020-04-14 17:06:39 +00:00
|
|
|
android:layout_below="@+id/app_bar_layout"
|
2020-04-14 17:35:26 +00:00
|
|
|
android:layout_alignParentEnd="true"
|
|
|
|
android:layout_alignParentRight="true"
|
2020-04-14 19:06:26 +00:00
|
|
|
android:layout_marginTop="24dp"
|
|
|
|
android:layout_marginEnd="24dp"
|
|
|
|
android:layout_marginRight="24dp"
|
2020-04-16 15:38:05 +00:00
|
|
|
android:visibility="gone"
|
|
|
|
app:elevation="4dp" />
|
2020-04-15 11:21:21 +00:00
|
|
|
|
|
|
|
<org.webrtc.SurfaceViewRenderer
|
|
|
|
android:id="@+id/remote_video"
|
|
|
|
android:layout_width="match_parent"
|
2020-04-15 22:08:58 +00:00
|
|
|
android:layout_height="match_parent"
|
2020-04-15 11:21:21 +00:00
|
|
|
android:layout_below="@+id/app_bar_layout"
|
|
|
|
android:layout_alignParentStart="true"
|
|
|
|
android:layout_alignParentLeft="true"
|
|
|
|
android:layout_alignParentBottom="true"
|
|
|
|
android:visibility="gone" />
|
2020-04-14 17:06:39 +00:00
|
|
|
|
2020-04-17 13:06:13 +00:00
|
|
|
<ImageView
|
|
|
|
android:id="@+id/pip_local_mic_off_indicator"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentEnd="true"
|
|
|
|
android:layout_alignParentRight="true"
|
|
|
|
android:layout_alignParentBottom="true"
|
|
|
|
android:layout_margin="8dp"
|
2020-04-20 11:41:50 +00:00
|
|
|
android:alpha="0.7"
|
2020-04-17 13:06:13 +00:00
|
|
|
android:src="@drawable/ic_mic_off_black_24dp"
|
|
|
|
android:tint="@color/white"
|
|
|
|
android:visibility="gone" />
|
2020-04-07 09:36:28 +00:00
|
|
|
|
|
|
|
<RelativeLayout
|
2020-04-20 11:41:50 +00:00
|
|
|
android:id="@+id/button_row"
|
2020-05-02 15:15:46 +00:00
|
|
|
android:layout_width="match_parent"
|
2020-04-07 09:36:28 +00:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentBottom="true"
|
|
|
|
android:layout_centerHorizontal="true"
|
|
|
|
android:layout_marginBottom="24dp">
|
|
|
|
|
2020-05-02 15:15:46 +00:00
|
|
|
<RelativeLayout
|
|
|
|
android:layout_width="288dp"
|
2020-04-07 09:36:28 +00:00
|
|
|
android:layout_height="wrap_content"
|
2020-05-02 15:15:46 +00:00
|
|
|
android:layout_centerInParent="true">
|
|
|
|
|
2021-01-18 17:26:46 +00:00
|
|
|
<com.google.android.material.floatingactionbutton.FloatingActionButton
|
2020-05-02 15:15:46 +00:00
|
|
|
android:id="@+id/reject_call"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentStart="true"
|
|
|
|
android:layout_alignParentLeft="true"
|
|
|
|
android:layout_margin="16dp"
|
|
|
|
android:src="@drawable/ic_call_end_white_48dp"
|
|
|
|
android:visibility="gone"
|
|
|
|
app:backgroundTint="@color/red700"
|
|
|
|
app:elevation="4dp"
|
|
|
|
app:fabCustomSize="72dp"
|
|
|
|
app:maxImageSize="36dp"
|
|
|
|
tools:visibility="visible" />
|
|
|
|
|
2021-01-18 17:26:46 +00:00
|
|
|
<com.google.android.material.floatingactionbutton.FloatingActionButton
|
2020-05-02 15:15:46 +00:00
|
|
|
android:id="@+id/accept_call"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentEnd="true"
|
|
|
|
android:layout_alignParentRight="true"
|
|
|
|
android:layout_centerVertical="true"
|
|
|
|
android:layout_margin="16dp"
|
|
|
|
android:src="@drawable/ic_call_white_48dp"
|
|
|
|
android:visibility="gone"
|
|
|
|
app:backgroundTint="@color/green700"
|
|
|
|
app:elevation="4dp"
|
|
|
|
app:fabCustomSize="72dp"
|
|
|
|
app:maxImageSize="36dp"
|
|
|
|
tools:visibility="visible" />
|
|
|
|
|
|
|
|
</RelativeLayout>
|
2020-04-07 12:22:12 +00:00
|
|
|
|
2021-01-18 17:26:46 +00:00
|
|
|
<com.google.android.material.floatingactionbutton.FloatingActionButton
|
2020-04-13 10:02:34 +00:00
|
|
|
android:id="@+id/in_call_action_left"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_centerVertical="true"
|
2020-11-13 15:11:38 +00:00
|
|
|
android:layout_margin="@dimen/in_call_fab_margin"
|
2020-04-13 10:02:34 +00:00
|
|
|
android:layout_toStartOf="@+id/end_call"
|
|
|
|
android:layout_toLeftOf="@+id/end_call"
|
|
|
|
android:visibility="gone"
|
|
|
|
app:backgroundTint="?color_background_primary"
|
|
|
|
app:elevation="4dp"
|
|
|
|
app:fabSize="mini"
|
|
|
|
app:tint="?attr/icon_tint" />
|
|
|
|
|
2021-01-18 17:26:46 +00:00
|
|
|
<com.google.android.material.floatingactionbutton.FloatingActionButton
|
2020-04-07 12:22:12 +00:00
|
|
|
android:id="@+id/end_call"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_centerInParent="true"
|
2020-11-13 15:11:38 +00:00
|
|
|
android:layout_margin="@dimen/in_call_fab_margin_center"
|
2020-04-07 12:22:12 +00:00
|
|
|
android:src="@drawable/ic_call_end_white_48dp"
|
2020-04-13 10:02:34 +00:00
|
|
|
android:visibility="visible"
|
2020-04-07 12:22:12 +00:00
|
|
|
app:backgroundTint="@color/red700"
|
|
|
|
app:elevation="4dp"
|
|
|
|
app:fabCustomSize="72dp"
|
2020-04-07 14:17:29 +00:00
|
|
|
app:maxImageSize="36dp" />
|
2020-04-07 09:36:28 +00:00
|
|
|
|
2021-01-18 17:26:46 +00:00
|
|
|
<com.google.android.material.floatingactionbutton.FloatingActionButton
|
2020-04-13 10:02:34 +00:00
|
|
|
android:id="@+id/in_call_action_right"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_centerVertical="true"
|
2020-11-13 15:11:38 +00:00
|
|
|
android:layout_margin="@dimen/in_call_fab_margin"
|
2020-04-13 10:02:34 +00:00
|
|
|
android:layout_toEndOf="@+id/end_call"
|
|
|
|
android:layout_toRightOf="@+id/end_call"
|
|
|
|
android:visibility="gone"
|
|
|
|
app:backgroundTint="?color_background_primary"
|
|
|
|
app:elevation="4dp"
|
|
|
|
app:fabSize="mini"
|
|
|
|
app:tint="?attr/icon_tint" />
|
|
|
|
|
2021-01-18 17:26:46 +00:00
|
|
|
<com.google.android.material.floatingactionbutton.FloatingActionButton
|
2020-05-02 15:15:46 +00:00
|
|
|
android:id="@+id/in_call_action_far_right"
|
2020-04-07 09:36:28 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_centerVertical="true"
|
2020-11-13 15:11:38 +00:00
|
|
|
android:layout_margin="@dimen/in_call_fab_margin"
|
2020-05-02 15:15:46 +00:00
|
|
|
android:layout_toEndOf="@+id/in_call_action_right"
|
|
|
|
android:layout_toRightOf="@+id/in_call_action_right"
|
2020-04-07 14:17:29 +00:00
|
|
|
android:visibility="gone"
|
2020-05-02 15:15:46 +00:00
|
|
|
app:backgroundTint="?color_background_primary"
|
2020-04-07 09:36:28 +00:00
|
|
|
app:elevation="4dp"
|
2020-05-02 15:15:46 +00:00
|
|
|
app:fabSize="mini"
|
|
|
|
app:tint="?attr/icon_tint" />
|
2020-04-07 09:36:28 +00:00
|
|
|
</RelativeLayout>
|
|
|
|
|
|
|
|
</RelativeLayout>
|
|
|
|
</layout>
|