2020-09-10 16:59:47 -04:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<org.thoughtcrime.securesms.components.webrtc.CallParticipantView 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:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
tools:layout_height="match_parent"
|
|
|
|
tools:layout_width="match_parent">
|
|
|
|
|
2020-12-07 10:05:35 -05:00
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
|
|
android:id="@+id/call_participant_background_avatar"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="0dp"
|
|
|
|
android:scaleType="centerCrop"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
tools:src="@tools:sample/backgrounds/scenic" />
|
|
|
|
|
2020-09-10 16:59:47 -04:00
|
|
|
<org.thoughtcrime.securesms.components.AvatarImageView
|
|
|
|
android:id="@+id/call_participant_item_avatar"
|
2020-11-11 15:11:03 -05:00
|
|
|
android:layout_width="112dp"
|
|
|
|
android:layout_height="112dp"
|
2020-09-10 16:59:47 -04:00
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
tools:srcCompat="@tools:sample/avatars" />
|
|
|
|
|
2021-11-11 13:46:38 -04:00
|
|
|
<View
|
|
|
|
android:id="@+id/call_participant_badge_offseter"
|
|
|
|
android:layout_width="36dp"
|
|
|
|
android:layout_height="32dp"
|
|
|
|
app:layout_constraintBottom_toBottomOf="@id/call_participant_item_avatar"
|
|
|
|
app:layout_constraintEnd_toEndOf="@id/call_participant_item_avatar" />
|
|
|
|
|
|
|
|
<org.thoughtcrime.securesms.badges.BadgeImageView
|
|
|
|
android:id="@+id/call_participant_item_badge"
|
|
|
|
android:layout_width="36dp"
|
|
|
|
android:layout_height="36dp"
|
|
|
|
app:badge_size="large"
|
|
|
|
app:layout_constraintEnd_toEndOf="@id/call_participant_badge_offseter"
|
|
|
|
app:layout_constraintTop_toTopOf="@id/call_participant_badge_offseter" />
|
|
|
|
|
2020-09-10 16:59:47 -04:00
|
|
|
<ImageView
|
|
|
|
android:id="@+id/call_participant_item_pip_avatar"
|
|
|
|
android:layout_width="200dp"
|
|
|
|
android:layout_height="200dp"
|
|
|
|
android:visibility="gone"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
tools:srcCompat="@tools:sample/avatars" />
|
|
|
|
|
2021-11-11 13:46:38 -04:00
|
|
|
<org.thoughtcrime.securesms.badges.BadgeImageView
|
|
|
|
android:id="@+id/call_participant_item_pip_badge"
|
|
|
|
android:layout_width="36dp"
|
|
|
|
android:layout_height="36dp"
|
|
|
|
android:visibility="gone"
|
|
|
|
app:badge_size="large"
|
|
|
|
app:layout_constraintBottom_toBottomOf="@id/call_participant_item_pip_avatar"
|
|
|
|
app:layout_constraintEnd_toEndOf="@id/call_participant_item_pip_avatar" />
|
|
|
|
|
2021-05-25 12:15:07 -04:00
|
|
|
<FrameLayout
|
|
|
|
android:id="@+id/call_participant_renderer_frame"
|
2020-09-10 16:59:47 -04:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2021-05-25 12:15:07 -04:00
|
|
|
android:background="@color/core_grey_80"
|
2020-09-10 16:59:47 -04:00
|
|
|
android:visibility="gone"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2021-05-25 12:15:07 -04:00
|
|
|
app:layout_constraintTop_toTopOf="parent">
|
|
|
|
|
|
|
|
<org.thoughtcrime.securesms.components.webrtc.TextureViewRenderer
|
|
|
|
android:id="@+id/call_participant_renderer"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:visibility="gone" />
|
|
|
|
|
|
|
|
</FrameLayout>
|
2020-09-10 16:59:47 -04:00
|
|
|
|
2022-04-01 17:09:56 -04:00
|
|
|
<org.thoughtcrime.securesms.components.webrtc.AudioIndicatorView
|
|
|
|
android:id="@+id/call_participant_audio_indicator"
|
2022-04-20 11:29:14 -04:00
|
|
|
android:layout_width="20dp"
|
|
|
|
android:layout_height="20dp"
|
2022-04-22 12:36:05 -04:00
|
|
|
android:layout_marginStart="@dimen/webrtc_audio_indicator_margin"
|
|
|
|
android:layout_marginBottom="@dimen/webrtc_audio_indicator_margin"
|
2020-12-02 13:43:05 -05:00
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
2022-04-01 17:09:56 -04:00
|
|
|
app:layout_constraintStart_toStartOf="parent" />
|
2020-12-02 13:43:05 -05:00
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/call_participant_info_overlay"
|
2020-12-07 10:05:35 -05:00
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="0dp"
|
2020-12-02 13:43:05 -05:00
|
|
|
android:background="@color/transparent_black_40"
|
|
|
|
android:gravity="center"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:visibility="gone"
|
2020-12-07 10:05:35 -05:00
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
2020-12-02 13:43:05 -05:00
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
2020-12-07 10:05:35 -05:00
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2020-12-02 13:43:05 -05:00
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
tools:visibility="visible">
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
|
|
android:id="@+id/call_participant_info_icon"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
tools:drawableTint="@color/core_white"
|
|
|
|
tools:srcCompat="@drawable/ic_block_tinted_24" />
|
|
|
|
|
|
|
|
<org.thoughtcrime.securesms.components.emoji.EmojiTextView
|
|
|
|
android:id="@+id/call_participant_info_message"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2020-12-07 10:05:35 -05:00
|
|
|
android:layout_marginStart="16dp"
|
2020-12-02 13:43:05 -05:00
|
|
|
android:layout_marginTop="12dp"
|
2020-12-07 10:05:35 -05:00
|
|
|
android:layout_marginEnd="16dp"
|
2020-12-02 13:43:05 -05:00
|
|
|
android:layout_marginBottom="12dp"
|
|
|
|
android:gravity="center_horizontal"
|
|
|
|
android:lines="3"
|
|
|
|
android:textColor="@color/core_white"
|
|
|
|
tools:text="J. Jonah Jameson is blocked." />
|
|
|
|
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
android:id="@+id/call_participant_info_more_info"
|
|
|
|
style="@style/Signal.Widget.Button.Small.Primary"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/CallParticipantView__more_info" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
2020-11-20 15:42:46 -05:00
|
|
|
|
2020-09-10 16:59:47 -04:00
|
|
|
</org.thoughtcrime.securesms.components.webrtc.CallParticipantView>
|