<?xml version="1.0" encoding="utf-8"?>
<androidx.core.widget.NestedScrollView 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="match_parent"
    android:layout_height="wrap_content">

    <androidx.constraintlayout.widget.ConstraintLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        tools:theme="@style/Theme.Signal.RoundedBottomSheet.Light">

        <org.thoughtcrime.securesms.avatar.view.AvatarView
            android:id="@+id/rbs_recipient_avatar"
            android:layout_width="80dp"
            android:layout_height="80dp"
            android:layout_gravity="center_horizontal"
            android:layout_marginTop="24dp"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintHorizontal_bias="0.5"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toTopOf="parent" />

        <org.thoughtcrime.securesms.badges.BadgeImageView
            android:id="@+id/rbs_badge"
            android:layout_width="36dp"
            android:layout_height="36dp"
            android:layout_marginStart="44dp"
            android:layout_marginTop="52dp"
            android:contentDescription="@string/ImageView__badge"
            app:badge_size="large"
            app:layout_constraintStart_toStartOf="@id/rbs_recipient_avatar"
            app:layout_constraintTop_toTopOf="@id/rbs_recipient_avatar" />

        <ProgressBar
            android:id="@+id/rbs_admin_action_busy"
            android:layout_width="0dp"
            android:layout_height="0dp"
            android:visibility="gone"
            app:layout_constraintBottom_toBottomOf="@+id/rbs_recipient_avatar"
            app:layout_constraintEnd_toEndOf="@+id/rbs_recipient_avatar"
            app:layout_constraintStart_toStartOf="@+id/rbs_recipient_avatar"
            app:layout_constraintTop_toTopOf="@+id/rbs_recipient_avatar"
            tools:visibility="visible" />

        <org.thoughtcrime.securesms.components.emoji.EmojiTextView
            android:id="@+id/rbs_full_name"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_marginStart="@dimen/dsl_settings_gutter"
            android:layout_marginTop="12dp"
            android:layout_marginEnd="@dimen/dsl_settings_gutter"
            android:gravity="center_horizontal"
            android:textAppearance="@style/Signal.Text.HeadlineMedium"
            android:textColor="@color/signal_text_primary"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintHorizontal_bias="0.5"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toBottomOf="@id/rbs_recipient_avatar"
            tools:text="Gwen Stacy" />

        <org.thoughtcrime.securesms.components.emoji.EmojiTextView
            android:id="@+id/rbs_about"
            style="@style/Signal.Text.BodyLarge"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginStart="@dimen/dsl_settings_gutter"
            android:layout_marginTop="8dp"
            android:layout_marginEnd="@dimen/dsl_settings_gutter"
            android:gravity="center"
            android:textColor="@color/signal_text_secondary"
            app:emoji_forceCustom="true"
            app:layout_constraintTop_toBottomOf="@id/rbs_full_name"
            tools:text="🕷🕷🕷Hangin' on the web🕷🕷" />

        <org.thoughtcrime.securesms.components.emoji.EmojiTextView
            android:id="@+id/rbs_username_number"
            style="@style/Signal.Text.BodyLarge"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginStart="@dimen/dsl_settings_gutter"
            android:layout_marginTop="4dp"
            android:layout_marginEnd="@dimen/dsl_settings_gutter"
            android:textColor="@color/signal_text_secondary"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintHorizontal_bias="0.5"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toBottomOf="@+id/rbs_about"
            app:layout_goneMarginTop="8dp"
            tools:text="\@spidergwen  +1 555-654-6657" />

        <TextView
            android:id="@+id/rbs_note_to_self_description"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_marginStart="@dimen/dsl_settings_gutter"
            android:layout_marginTop="8dp"
            android:layout_marginEnd="@dimen/dsl_settings_gutter"
            android:text="@string/ConversationFragment__you_can_add_notes_for_yourself_in_this_conversation"
            android:textAlignment="center"
            android:textAppearance="@style/Signal.Text.BodyMedium"
            android:textColor="@color/signal_text_primary"
            android:visibility="gone"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintHorizontal_bias="0.5"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toBottomOf="@+id/rbs_username_number"
            tools:visibility="visible" />

        <LinearLayout
            android:id="@+id/interactions_container"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:orientation="vertical"
            android:paddingBottom="16dp"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toBottomOf="@+id/rbs_note_to_self_description">

            <include layout="@layout/conversation_settings_button_strip" />

            <include layout="@layout/dsl_divider_item" />

            <TextView
                android:id="@+id/rbs_block_button"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:background="?selectableItemBackground"
                android:drawablePadding="16dp"
                android:gravity="center_vertical"
                android:minHeight="56dp"
                android:paddingStart="@dimen/dsl_settings_gutter"
                android:paddingEnd="@dimen/dsl_settings_gutter"
                android:text="@string/RecipientBottomSheet_block"
                android:textAppearance="@style/Signal.Text.BodyLarge"
                android:visibility="gone"
                app:drawableStartCompat="@drawable/ic_block_tinted_24"
                tools:visibility="visible" />

            <TextView
                android:id="@+id/rbs_unblock_button"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:background="?selectableItemBackground"
                android:drawablePadding="16dp"
                android:gravity="center_vertical"
                android:minHeight="56dp"
                android:paddingStart="@dimen/dsl_settings_gutter"
                android:paddingEnd="@dimen/dsl_settings_gutter"
                android:text="@string/RecipientBottomSheet_unblock"
                android:textAppearance="@style/Signal.Text.BodyLarge"
                android:visibility="gone"
                app:drawableStartCompat="@drawable/ic_block_tinted_24"
                tools:visibility="visible" />

            <TextView
                android:id="@+id/rbs_remove_from_group_button"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:background="?selectableItemBackground"
                android:drawablePadding="16dp"
                android:gravity="center_vertical"
                android:minHeight="56dp"
                android:paddingStart="@dimen/dsl_settings_gutter"
                android:paddingEnd="@dimen/dsl_settings_gutter"
                android:text="@string/RecipientBottomSheet_remove_from_group"
                android:textAppearance="@style/Signal.Text.BodyLarge"
                android:visibility="gone"
                app:drawableStartCompat="@drawable/ic_leave_tinted_24"
                tools:visibility="visible" />

            <TextView
                android:id="@+id/rbs_make_group_admin_button"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:background="?selectableItemBackground"
                android:drawablePadding="16dp"
                android:gravity="center_vertical"
                android:minHeight="56dp"
                android:paddingStart="@dimen/dsl_settings_gutter"
                android:paddingEnd="@dimen/dsl_settings_gutter"
                android:text="@string/RecipientBottomSheet_make_admin"
                android:textAppearance="@style/Signal.Text.BodyLarge"
                android:visibility="gone"
                app:drawableStartCompat="@drawable/ic_group_24"
                tools:visibility="visible" />

            <TextView
                android:id="@+id/rbs_remove_group_admin_button"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:background="?selectableItemBackground"
                android:drawablePadding="16dp"
                android:gravity="center_vertical"
                android:minHeight="56dp"
                android:paddingStart="@dimen/dsl_settings_gutter"
                android:paddingEnd="@dimen/dsl_settings_gutter"
                android:text="@string/RecipientBottomSheet_remove_as_admin"
                android:textAppearance="@style/Signal.Text.BodyLarge"
                android:visibility="gone"
                app:drawableStartCompat="@drawable/ic_group_24"
                tools:visibility="visible" />

            <TextView
                android:id="@+id/rbs_add_to_group_button"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:background="?selectableItemBackground"
                android:drawablePadding="16dp"
                android:gravity="center_vertical"
                android:minHeight="56dp"
                android:paddingStart="@dimen/dsl_settings_gutter"
                android:paddingEnd="@dimen/dsl_settings_gutter"
                android:textAppearance="@style/Signal.Text.BodyLarge"
                android:visibility="gone"
                app:drawableStartCompat="@drawable/ic_group_24"
                tools:text="@string/RecipientBottomSheet_add_to_a_group"
                tools:visibility="visible" />

            <TextView
                android:id="@+id/rbs_add_contact_button"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:background="?selectableItemBackground"
                android:drawablePadding="16dp"
                android:gravity="center_vertical"
                android:minHeight="56dp"
                android:paddingStart="@dimen/dsl_settings_gutter"
                android:paddingEnd="@dimen/dsl_settings_gutter"
                android:text="@string/RecipientBottomSheet_add_to_contacts"
                android:textAppearance="@style/Signal.Text.BodyLarge"
                android:visibility="gone"
                app:drawableStartCompat="@drawable/ic_plus_24"
                tools:visibility="visible" />

            <TextView
                android:id="@+id/rbs_contact_details_button"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:background="?selectableItemBackground"
                android:drawablePadding="16dp"
                android:gravity="center_vertical"
                android:minHeight="56dp"
                android:paddingStart="@dimen/dsl_settings_gutter"
                android:paddingEnd="@dimen/dsl_settings_gutter"
                android:text="@string/ConversationSettingsFragment__contact_details"
                android:textAppearance="@style/Signal.Text.BodyLarge"
                android:visibility="gone"
                app:drawableStartCompat="@drawable/ic_profile_circle_24"
                tools:visibility="visible" />

            <TextView
                android:id="@+id/rbs_view_safety_number_button"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:background="?selectableItemBackground"
                android:drawablePadding="16dp"
                android:gravity="center_vertical"
                android:minHeight="56dp"
                android:paddingStart="@dimen/dsl_settings_gutter"
                android:paddingEnd="@dimen/dsl_settings_gutter"
                android:text="@string/RecipientBottomSheet_view_safety_number"
                android:textAppearance="@style/Signal.Text.BodyLarge"
                android:visibility="gone"
                app:drawableStartCompat="@drawable/ic_safety_number_24"
                app:drawableTint="@color/signal_icon_tint_primary"
                tools:visibility="visible" />

        </LinearLayout>

    </androidx.constraintlayout.widget.ConstraintLayout>
</androidx.core.widget.NestedScrollView>
