2020-11-30 21:10:15 +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-11-30 21:10:15 +03:00
|
|
|
|
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"
|
2021-06-02 12:07:05 +03:00
|
|
|
android:background="@color/bg_call_screen_blur"
|
2020-05-05 12:46:21 +03:00
|
|
|
tools:ignore="MergeRootFrame">
|
|
|
|
|
2020-12-01 19:50:59 +03:00
|
|
|
<ImageView
|
|
|
|
android:id="@+id/bgCallView"
|
|
|
|
android:layout_width="match_parent"
|
2020-12-22 14:05:36 +03:00
|
|
|
android:layout_height="match_parent"
|
2021-02-12 17:04:03 +03:00
|
|
|
android:importantForAccessibility="no"
|
2020-12-22 14:05:36 +03:00
|
|
|
android:scaleType="centerCrop"
|
|
|
|
tools:src="@tools:sample/avatars" />
|
2020-12-01 19:50:59 +03:00
|
|
|
|
2020-05-05 12:46:21 +03:00
|
|
|
<org.webrtc.SurfaceViewRenderer
|
2020-12-15 22:32:26 +03:00
|
|
|
android:id="@+id/fullscreenRenderer"
|
2020-05-05 12:46:21 +03:00
|
|
|
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
|
2020-12-15 22:32:26 +03:00
|
|
|
android:id="@+id/pipRenderer"
|
2020-05-05 12:46:21 +03:00
|
|
|
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" />
|
|
|
|
|
2021-06-10 17:01:48 +03:00
|
|
|
<com.google.android.material.card.MaterialCardView
|
2020-12-22 14:05:36 +03:00
|
|
|
android:id="@+id/otherKnownCallLayout"
|
|
|
|
android:layout_width="80dp"
|
|
|
|
android:layout_height="144dp"
|
|
|
|
android:layout_marginTop="32dp"
|
|
|
|
android:layout_marginEnd="16dp"
|
2021-06-09 12:51:04 +03:00
|
|
|
android:background="@color/element_background_light"
|
2021-06-14 22:40:14 +03:00
|
|
|
android:foreground="?attr/selectableItemBackground"
|
2021-02-04 18:29:23 +03:00
|
|
|
android:visibility="gone"
|
2021-06-14 22:40:14 +03:00
|
|
|
app:cardBackgroundColor="@color/bg_call_screen"
|
2021-06-02 12:07:05 +03:00
|
|
|
app:cardCornerRadius="4dp"
|
|
|
|
app:cardElevation="4dp"
|
2020-12-22 14:05:36 +03:00
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
2021-02-04 18:29:23 +03:00
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
tools:visibility="visible">
|
2020-12-22 14:05:36 +03:00
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/otherKnownCallAvatarView"
|
2021-06-02 12:07:05 +03:00
|
|
|
android:layout_width="64dp"
|
|
|
|
android:layout_height="64dp"
|
|
|
|
android:layout_gravity="center"
|
2021-02-12 17:04:03 +03:00
|
|
|
android:importantForAccessibility="no"
|
2020-12-22 14:05:36 +03:00
|
|
|
android:scaleType="centerCrop"
|
|
|
|
tools:src="@tools:sample/avatars" />
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/otherSmallIsHeldIcon"
|
|
|
|
android:layout_width="20dp"
|
|
|
|
android:layout_height="20dp"
|
|
|
|
android:layout_gravity="center"
|
2021-02-12 17:04:03 +03:00
|
|
|
android:importantForAccessibility="no"
|
2020-12-22 14:05:36 +03:00
|
|
|
android:src="@drawable/ic_call_small_pause" />
|
|
|
|
|
2021-06-10 17:01:48 +03:00
|
|
|
</com.google.android.material.card.MaterialCardView>
|
2020-12-22 14:05:36 +03:00
|
|
|
|
2020-11-30 21:10:15 +03:00
|
|
|
<ImageView
|
|
|
|
android:id="@+id/otherMemberAvatar"
|
|
|
|
android:layout_width="80dp"
|
|
|
|
android:layout_height="80dp"
|
|
|
|
android:contentDescription="@string/avatar"
|
2021-02-12 17:04:03 +03:00
|
|
|
android:importantForAccessibility="no"
|
2020-11-30 21:10:15 +03:00
|
|
|
android:scaleType="centerCrop"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
2021-05-10 23:34:13 +03:00
|
|
|
tools:src="@sample/user_round_avatars" />
|
2020-12-01 19:50:59 +03:00
|
|
|
|
2020-11-30 21:10:15 +03:00
|
|
|
<ImageView
|
2020-12-22 14:05:36 +03:00
|
|
|
android:id="@+id/smallIsHeldIcon"
|
2020-11-30 21:10:15 +03:00
|
|
|
android:layout_width="20dp"
|
|
|
|
android:layout_height="20dp"
|
2021-02-12 17:04:03 +03:00
|
|
|
android:importantForAccessibility="no"
|
2020-11-30 21:10:15 +03:00
|
|
|
android:src="@drawable/ic_call_small_pause"
|
|
|
|
app:layout_constraintBottom_toBottomOf="@id/otherMemberAvatar"
|
2020-12-22 14:05:36 +03:00
|
|
|
app:layout_constraintEnd_toEndOf="@id/otherMemberAvatar"
|
2020-11-30 21:10:15 +03:00
|
|
|
app:layout_constraintStart_toStartOf="@id/otherMemberAvatar"
|
2020-12-22 14:05:36 +03:00
|
|
|
app:layout_constraintTop_toTopOf="@id/otherMemberAvatar" />
|
2020-11-30 21:10:15 +03:00
|
|
|
|
2020-06-11 12:33:02 +03:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/participantNameText"
|
2021-06-16 12:59:08 +03:00
|
|
|
style="@style/Widget.Vector.TextView.Title"
|
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-11-30 21:10:15 +03:00
|
|
|
android:layout_marginTop="16dp"
|
2020-08-17 17:48:40 +03:00
|
|
|
android:layout_marginEnd="@dimen/layout_horizontal_margin"
|
2020-06-11 12:33:02 +03:00
|
|
|
android:gravity="center"
|
2021-06-09 12:51:04 +03:00
|
|
|
android:textColor="@android:color/white"
|
2020-06-11 12:33:02 +03:00
|
|
|
android:textStyle="bold"
|
2020-08-17 17:48:40 +03:00
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2020-11-30 21:10:15 +03:00
|
|
|
app:layout_constraintTop_toBottomOf="@id/otherMemberAvatar"
|
2021-05-10 23:49:11 +03:00
|
|
|
tools:text="@sample/users.json/data/displayName" />
|
2020-06-11 12:33:02 +03:00
|
|
|
|
|
|
|
<TextView
|
2020-11-30 21:10:15 +03:00
|
|
|
android:id="@+id/callStatusText"
|
2021-06-16 12:59:08 +03:00
|
|
|
style="@style/Widget.Vector.TextView.Body"
|
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-11-30 21:10:15 +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"
|
2021-06-09 12:51:04 +03:00
|
|
|
android:textColor="@android:color/white"
|
2020-08-17 17:48:40 +03:00
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2020-11-30 21:10:15 +03:00
|
|
|
app:layout_constraintTop_toBottomOf="@id/participantNameText"
|
|
|
|
tools:text="@string/call_connecting" />
|
2020-05-25 11:23:45 +03:00
|
|
|
|
2021-02-04 18:29:23 +03:00
|
|
|
<Button
|
2020-11-30 21:10:15 +03:00
|
|
|
android:id="@+id/callActionText"
|
2021-06-16 12:59:08 +03:00
|
|
|
style="@style/Widget.Vector.Button.Text"
|
2021-02-04 18:29:23 +03:00
|
|
|
android:layout_width="wrap_content"
|
2020-11-30 21:10:15 +03:00
|
|
|
android:layout_height="48dp"
|
2020-12-22 14:05:36 +03:00
|
|
|
android:layout_margin="8dp"
|
2020-06-11 12:33:02 +03:00
|
|
|
android:gravity="center"
|
2021-06-09 12:51:04 +03:00
|
|
|
android:textColor="?colorSecondary"
|
2020-08-17 17:48:40 +03:00
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2020-11-30 21:10:15 +03:00
|
|
|
app:layout_constraintTop_toBottomOf="@id/callStatusText"
|
|
|
|
tools:text="@string/call_resume_action" />
|
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-11-30 21:10:15 +03:00
|
|
|
android:layout_width="24dp"
|
|
|
|
android:layout_height="24dp"
|
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-11-30 21:10:15 +03:00
|
|
|
app:constraint_referenced_ids="participantNameText, 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"
|
2020-12-15 22:32:26 +03:00
|
|
|
app:constraint_referenced_ids="pipRenderer, fullscreenRenderer"
|
2020-06-11 12:33:02 +03:00
|
|
|
tools:visibility="invisible" />
|
|
|
|
|
2020-08-03 19:23:05 +03:00
|
|
|
<im.vector.app.features.call.CallControlsView
|
2020-12-15 22:32:26 +03:00
|
|
|
android:id="@+id/callControlsView"
|
2020-06-11 12:33:02 +03:00
|
|
|
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>
|