<?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"
    tools:viewBindingIgnore="true"
    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">

    <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" />

    <org.thoughtcrime.securesms.components.AvatarImageView
        android:id="@+id/call_participant_item_avatar"
        android:layout_width="112dp"
        android:layout_height="112dp"
        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" />

    <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" />

    <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" />

    <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" />

    <FrameLayout
        android:id="@+id/call_participant_renderer_frame"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:background="@color/core_grey_80"
        android:visibility="gone"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        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>

    <org.thoughtcrime.securesms.components.webrtc.AudioIndicatorView
        android:id="@+id/call_participant_audio_indicator"
        android:layout_width="20dp"
        android:layout_height="20dp"
        android:layout_marginStart="@dimen/webrtc_audio_indicator_margin"
        android:layout_marginBottom="@dimen/webrtc_audio_indicator_margin"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintStart_toStartOf="parent" />

    <LinearLayout
        android:id="@+id/call_participant_info_overlay"
        android:layout_width="0dp"
        android:layout_height="0dp"
        android:background="@color/transparent_black_40"
        android:gravity="center"
        android:orientation="vertical"
        android:visibility="gone"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        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"
            android:layout_marginStart="16dp"
            android:layout_marginTop="12dp"
            android:layout_marginEnd="16dp"
            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>

</org.thoughtcrime.securesms.components.webrtc.CallParticipantView>
