2020-06-11 12:33:02 +03:00
|
|
|
<?xml version="1.0" encoding="utf-8"?><!-- tools:ignore is needed because lint thinks this can be replaced with a merge. Replacing this
|
2020-05-05 12:46:21 +03:00
|
|
|
with a merge causes the fullscreen SurfaceView not to be centered. -->
|
2020-05-25 11:23:45 +03:00
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2020-06-11 12:33:02 +03:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
2020-05-05 12:46:21 +03:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2020-06-19 16:20:26 +03:00
|
|
|
android:id="@+id/constraintLayout"
|
2020-05-05 12:46:21 +03:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2020-06-11 12:33:02 +03:00
|
|
|
android:background="?riotx_background"
|
2020-05-05 12:46:21 +03:00
|
|
|
tools:ignore="MergeRootFrame">
|
|
|
|
|
|
|
|
<org.webrtc.SurfaceViewRenderer
|
|
|
|
android:id="@+id/fullscreen_video_view"
|
|
|
|
android:layout_width="match_parent"
|
2020-06-12 11:01:20 +03:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
2020-05-05 12:46:21 +03:00
|
|
|
|
|
|
|
<org.webrtc.SurfaceViewRenderer
|
|
|
|
android:id="@+id/pip_video_view"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="144dp"
|
|
|
|
android:layout_gravity="bottom|end"
|
2020-06-11 12:33:02 +03:00
|
|
|
android:layout_marginTop="16dp"
|
|
|
|
android:layout_marginEnd="16dp"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/participantNameText"
|
2020-08-17 17:48:40 +03:00
|
|
|
android:layout_width="0dp"
|
2020-06-11 12:33:02 +03:00
|
|
|
android:layout_height="wrap_content"
|
2020-08-17 17:48:40 +03:00
|
|
|
android:layout_marginStart="@dimen/layout_horizontal_margin"
|
|
|
|
android:layout_marginEnd="@dimen/layout_horizontal_margin"
|
2020-06-11 12:33:02 +03:00
|
|
|
android:gravity="center"
|
|
|
|
android:textColor="?riotx_text_primary"
|
2020-08-17 20:08:32 +03:00
|
|
|
android:textSize="28sp"
|
2020-06-11 12:33:02 +03:00
|
|
|
android:textStyle="bold"
|
|
|
|
app:layout_constraintBottom_toTopOf="@id/callTypeText"
|
2020-08-17 17:48:40 +03:00
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
tools:text="@sample/matrix.json/data/displayName" />
|
2020-06-11 12:33:02 +03:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/callTypeText"
|
2020-08-17 17:48:40 +03:00
|
|
|
android:layout_width="0dp"
|
2020-06-11 12:33:02 +03:00
|
|
|
android:layout_height="wrap_content"
|
2020-08-17 17:48:40 +03:00
|
|
|
android:layout_marginStart="@dimen/layout_horizontal_margin"
|
|
|
|
android:layout_marginEnd="@dimen/layout_horizontal_margin"
|
2020-06-11 12:33:02 +03:00
|
|
|
android:layout_marginBottom="8dp"
|
|
|
|
android:gravity="center"
|
|
|
|
android:textColor="?riotx_text_secondary"
|
2020-08-17 20:08:32 +03:00
|
|
|
android:textSize="22sp"
|
2020-06-11 12:33:02 +03:00
|
|
|
app:layout_constraintBottom_toTopOf="@id/otherMemberAvatar"
|
2020-08-17 17:48:40 +03:00
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
tools:text="@string/action_video_call" />
|
2020-05-05 12:46:21 +03:00
|
|
|
|
2020-05-25 11:23:45 +03:00
|
|
|
<ImageView
|
2020-06-11 12:33:02 +03:00
|
|
|
android:id="@+id/otherMemberAvatar"
|
2020-08-17 20:08:32 +03:00
|
|
|
android:layout_width="160dp"
|
|
|
|
android:layout_height="160dp"
|
2020-06-22 17:14:48 +03:00
|
|
|
android:contentDescription="@string/avatar"
|
2020-06-11 12:33:02 +03:00
|
|
|
android:scaleType="centerCrop"
|
2020-05-25 11:23:45 +03:00
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
2020-06-11 12:33:02 +03:00
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
app:layout_constraintVertical_bias="0.3"
|
|
|
|
tools:src="@tools:sample/avatars" />
|
2020-05-25 11:23:45 +03:00
|
|
|
|
2020-06-11 12:33:02 +03:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/callStatusText"
|
2020-08-17 17:48:40 +03:00
|
|
|
android:layout_width="0dp"
|
2020-06-11 12:33:02 +03:00
|
|
|
android:layout_height="wrap_content"
|
2020-08-17 17:48:40 +03:00
|
|
|
android:layout_marginStart="@dimen/layout_horizontal_margin"
|
2020-06-11 12:33:02 +03:00
|
|
|
android:layout_marginTop="8dp"
|
2020-08-17 17:48:40 +03:00
|
|
|
android:layout_marginEnd="@dimen/layout_horizontal_margin"
|
2020-06-11 12:33:02 +03:00
|
|
|
android:layout_marginBottom="8dp"
|
|
|
|
android:gravity="center"
|
|
|
|
android:textColor="?riotx_text_secondary"
|
2020-08-17 20:08:32 +03:00
|
|
|
android:textSize="22sp"
|
2020-08-17 17:48:40 +03:00
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2020-06-11 12:33:02 +03:00
|
|
|
app:layout_constraintTop_toBottomOf="@id/otherMemberAvatar"
|
2020-08-17 17:48:40 +03:00
|
|
|
tools:text="@string/call_connecting" />
|
2020-06-11 12:33:02 +03:00
|
|
|
|
2020-06-19 16:20:26 +03:00
|
|
|
<ProgressBar
|
|
|
|
android:id="@+id/callConnectingProgress"
|
|
|
|
style="?android:attr/progressBarStyle"
|
2020-08-17 17:48:40 +03:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2020-06-19 16:20:26 +03:00
|
|
|
android:layout_margin="8dp"
|
|
|
|
android:visibility="gone"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/callStatusText"
|
|
|
|
tools:visibility="visible" />
|
|
|
|
|
2020-06-11 12:33:02 +03:00
|
|
|
<androidx.constraintlayout.widget.Group
|
|
|
|
android:id="@+id/callInfoGroup"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:visibility="visible"
|
2020-08-17 17:48:40 +03:00
|
|
|
app:constraint_referenced_ids="participantNameText,callTypeText,otherMemberAvatar,callStatusText" />
|
2020-06-11 12:33:02 +03:00
|
|
|
|
|
|
|
<androidx.constraintlayout.widget.Group
|
|
|
|
android:id="@+id/callVideoGroup"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:visibility="visible"
|
|
|
|
app:constraint_referenced_ids="pip_video_view, fullscreen_video_view"
|
|
|
|
tools:visibility="invisible" />
|
|
|
|
|
2020-08-03 19:23:05 +03:00
|
|
|
<im.vector.app.features.call.CallControlsView
|
2020-06-11 12:33:02 +03:00
|
|
|
android:id="@+id/callControls"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent" />
|
2020-05-25 11:23:45 +03:00
|
|
|
|
2020-05-05 12:46:21 +03:00
|
|
|
<FrameLayout
|
|
|
|
android:id="@+id/hud_fragment_container"
|
|
|
|
android:layout_width="match_parent"
|
2020-06-11 12:33:02 +03:00
|
|
|
android:layout_height="match_parent">
|
2020-05-05 12:46:21 +03:00
|
|
|
|
|
|
|
<FrameLayout
|
|
|
|
android:id="@+id/call_fragment_container"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent" />
|
2020-06-22 16:36:30 +03:00
|
|
|
|
2020-05-05 12:46:21 +03:00
|
|
|
</FrameLayout>
|
2020-06-22 16:36:30 +03:00
|
|
|
|
2020-05-25 11:23:45 +03:00
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|