mirror of
https://github.com/element-hq/element-android
synced 2024-12-23 01:31:24 +03:00
122 lines
No EOL
4.7 KiB
XML
122 lines
No EOL
4.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?><!-- tools:ignore is needed because lint thinks this can be replaced with a merge. Replacing this
|
|
with a merge causes the fullscreen SurfaceView not to be centered. -->
|
|
<androidx.constraintlayout.widget.ConstraintLayout 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"
|
|
android:id="@+id/constraintLayout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="?riotx_background"
|
|
tools:ignore="MergeRootFrame">
|
|
|
|
<org.webrtc.SurfaceViewRenderer
|
|
android:id="@+id/fullscreen_video_view"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
<org.webrtc.SurfaceViewRenderer
|
|
android:id="@+id/pip_video_view"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="144dp"
|
|
android:layout_gravity="bottom|end"
|
|
android:layout_marginTop="16dp"
|
|
android:layout_marginEnd="16dp"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
<TextView
|
|
android:id="@+id/participantNameText"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center"
|
|
android:textColor="?riotx_text_primary"
|
|
android:textSize="20sp"
|
|
android:textStyle="bold"
|
|
app:layout_constraintBottom_toTopOf="@id/callTypeText"
|
|
tools:text="Joe" />
|
|
|
|
<TextView
|
|
android:id="@+id/callTypeText"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="8dp"
|
|
android:gravity="center"
|
|
android:textColor="?riotx_text_secondary"
|
|
android:textSize="12sp"
|
|
app:layout_constraintBottom_toTopOf="@id/otherMemberAvatar"
|
|
tools:text="Video Call" />
|
|
|
|
<ImageView
|
|
android:id="@+id/otherMemberAvatar"
|
|
android:layout_width="128dp"
|
|
android:layout_height="128dp"
|
|
android:layout_centerVertical="true"
|
|
android:scaleType="centerCrop"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_constraintVertical_bias="0.3"
|
|
tools:src="@tools:sample/avatars" />
|
|
|
|
<TextView
|
|
android:id="@+id/callStatusText"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
android:layout_marginBottom="8dp"
|
|
android:gravity="center"
|
|
android:textColor="?riotx_text_secondary"
|
|
android:textSize="12sp"
|
|
app:layout_constraintTop_toBottomOf="@id/otherMemberAvatar"
|
|
tools:text="Connecting..." />
|
|
|
|
<ProgressBar
|
|
android:id="@+id/callConnectingProgress"
|
|
style="?android:attr/progressBarStyle"
|
|
android:layout_width="20dp"
|
|
android:layout_height="20dp"
|
|
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" />
|
|
|
|
<androidx.constraintlayout.widget.Group
|
|
android:id="@+id/callInfoGroup"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:visibility="visible"
|
|
app:constraint_referenced_ids="participantNameText, callTypeText, otherMemberAvatar, callStatusText" />
|
|
|
|
<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" />
|
|
|
|
|
|
<im.vector.riotx.features.call.CallControlsView
|
|
android:id="@+id/callControls"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
app:layout_constraintBottom_toBottomOf="parent" />
|
|
|
|
<FrameLayout
|
|
android:id="@+id/hud_fragment_container"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<FrameLayout
|
|
android:id="@+id/call_fragment_container"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent" />
|
|
|
|
</FrameLayout>
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout> |