anotherim/src/main/res/layout/activity_rtp_session.xml
2024-04-04 11:38:27 +02:00

256 lines
11 KiB
XML

<?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"
android:layout_height="match_parent">
<LinearLayout
android:id="@+id/pip_placeholder"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@android:color/black"
android:gravity="center"
android:orientation="horizontal"
android:visibility="gone">
<ProgressBar
android:id="@+id/pip_waiting"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:indeterminate="true"
android:indeterminateOnly="true"
android:indeterminateTint="@android:color/white"
android:visibility="gone" />
<ImageView
android:id="@+id/pip_warning"
android:layout_width="48dp"
android:layout_height="48dp"
android:src="@drawable/ic_warning_24dp"
android:visibility="gone"
app:tint="@android:color/white" />
</LinearLayout>
<com.google.android.material.appbar.AppBarLayout
android:id="@+id/app_bar_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:visibility="visible">
<com.google.android.material.appbar.MaterialToolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize" />
<TextView
android:id="@+id/with"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="16dp"
android:layout_marginRight="16dp"
android:textAppearance="?textAppearanceDisplayLarge"
tools:text="Juliet Capulet" />
<TextView
android:id="@+id/with_jid"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="16dp"
android:layout_marginTop="8dp"
android:layout_marginRight="16dp"
android:textAppearance="?textAppearanceBodyMedium"
android:visibility="visible"
tools:text="jcapulet@example.com" />
<View
android:layout_width="match_parent"
android:layout_height="32dp" />
</com.google.android.material.appbar.AppBarLayout>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_above="@+id/button_row"
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_marginTop="@dimen/rtp_session_duration_top_margin"
android:fontFamily="monospace"
android:textAppearance="?textAppearanceTitleLarge"
tools:text="01:23" />
<com.makeramen.roundedimageview.RoundedImageView
android:id="@+id/contact_photo"
android:layout_width="@dimen/publish_avatar_size"
android:layout_height="@dimen/publish_avatar_size"
android:layout_centerInParent="true"
app:riv_corner_radius="@dimen/incoming_call_radius" />
</RelativeLayout>
<LinearLayout
android:id="@+id/remote_video_wrapper"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@+id/app_bar_layout"
android:layout_alignParentStart="true"
android:layout_alignParentBottom="true"
android:background="@android:color/black"
android:gravity="center"
android:visibility="gone">
<eu.siacs.conversations.ui.widget.SurfaceViewRenderer
android:id="@+id/remote_video"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</LinearLayout>
<eu.siacs.conversations.ui.widget.SurfaceViewRenderer
android:id="@+id/local_video"
android:layout_width="@dimen/local_video_preview_width"
android:layout_height="@dimen/local_video_preview_height"
android:layout_below="@+id/app_bar_layout"
android:layout_alignParentEnd="true"
android:layout_marginTop="24dp"
android:layout_marginEnd="24dp"
android:visibility="gone"
app:elevation="4dp" />
<ImageView
android:id="@+id/verified"
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_below="@+id/app_bar_layout"
android:layout_alignParentStart="true"
android:layout_marginStart="16dp"
android:layout_marginTop="@dimen/rtp_session_duration_top_margin"
android:alpha="0.7"
android:src="@drawable/ic_verified_user_24dp"
app:tint="@color/light_green_600" />
<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_alignParentBottom="true"
android:layout_margin="8dp"
android:alpha="0.7"
android:src="@drawable/ic_mic_off_24dp"
android:visibility="gone"
app:tint="@android:color/white" />
<RelativeLayout
android:id="@+id/button_row"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:layout_marginBottom="24dp">
<RelativeLayout
android:layout_width="288dp"
android:layout_height="wrap_content"
android:layout_centerInParent="true">
<com.google.android.material.floatingactionbutton.FloatingActionButton
android:id="@+id/reject_call"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentStart="true"
android:layout_margin="16dp"
android:src="@drawable/ic_call_end_24dp"
android:visibility="gone"
app:backgroundTint="?colorError"
app:elevation="4dp"
app:fabCustomSize="72dp"
app:maxImageSize="36dp"
app:tint="?colorOnError"
tools:visibility="visible" />
<com.google.android.material.floatingactionbutton.FloatingActionButton
android:id="@+id/accept_call"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:layout_centerVertical="true"
android:layout_margin="16dp"
android:src="@drawable/ic_call_24dp"
android:visibility="gone"
app:backgroundTint="?colorPrimary"
app:elevation="4dp"
app:fabCustomSize="72dp"
app:maxImageSize="36dp"
app:tint="?colorOnPrimary"
tools:visibility="visible" />
</RelativeLayout>
<com.google.android.material.floatingactionbutton.FloatingActionButton
android:id="@+id/in_call_action_left"
style="?attr/floatingActionButtonSmallSurfaceStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_margin="@dimen/in_call_fab_margin"
android:layout_toStartOf="@+id/end_call"
android:visibility="gone" />
<com.google.android.material.floatingactionbutton.FloatingActionButton
android:id="@+id/end_call"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:layout_margin="@dimen/in_call_fab_margin_center"
android:src="@drawable/ic_call_end_24dp"
android:visibility="visible"
app:backgroundTint="?colorError"
app:elevation="4dp"
app:fabCustomSize="72dp"
app:maxImageSize="36dp"
app:tint="?colorOnError" />
<com.google.android.material.floatingactionbutton.FloatingActionButton
android:id="@+id/in_call_action_right"
style="?attr/floatingActionButtonSmallSurfaceStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_margin="@dimen/in_call_fab_margin"
android:layout_toEndOf="@+id/end_call"
android:visibility="gone" />
<com.google.android.material.floatingactionbutton.FloatingActionButton
android:id="@+id/in_call_action_far_right"
style="?attr/floatingActionButtonSmallSurfaceStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_margin="@dimen/in_call_fab_margin"
android:layout_toEndOf="@+id/in_call_action_right"
android:visibility="gone" />
</RelativeLayout>
<TextView
android:id="@+id/using_account"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:layout_alignParentBottom="true"
android:layout_margin="8dp"
android:text="@string/using_account"
android:textAppearance="?textAppearanceLabelMedium" />
</RelativeLayout>
</layout>