<?xml version="1.0" encoding="utf-8"?>
<org.thoughtcrime.securesms.conversation.ConversationTitleView 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/conversation_title_view"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:layout_gravity="center_vertical"
    android:gravity="center_vertical"
    tools:layout_height="?actionBarSize">

    <RelativeLayout
        android:transitionName="avatar"
        android:id="@+id/contact_photo_container"
        android:layout_width="wrap_content"
        android:layout_height="match_parent"
        android:layout_marginEnd="10dp">

        <org.thoughtcrime.securesms.avatar.view.AvatarView
            android:id="@+id/contact_photo_image"
            android:layout_width="36dp"
            android:layout_height="36dp"
            android:layout_alignParentStart="true"
            android:layout_centerVertical="true"
            android:clickable="true"
            android:layout_marginEnd="10dp"
            android:contentDescription="@string/conversation_list_item_view__contact_photo_image"
            android:cropToPadding="true"
            android:foreground="@drawable/contact_photo_background"
            app:fallbackImageSize="small"
            tools:src="@drawable/ic_contact_picture" />

        <org.thoughtcrime.securesms.badges.BadgeImageView
            android:id="@+id/badge"
            android:layout_width="16dp"
            android:layout_height="16dp"
            android:layout_alignStart="@id/contact_photo_image"
            android:layout_alignTop="@id/contact_photo_image"
            android:layout_marginStart="20dp"
            android:layout_marginTop="23dp"
            android:contentDescription="@string/ImageView__badge"
            app:badge_size="small" />
    </RelativeLayout>

    <LinearLayout
        android:id="@+id/content"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_centerVertical="true"
        android:layout_toEndOf="@id/contact_photo_container"
        android:orientation="vertical">

        <org.thoughtcrime.securesms.components.FromTextView
            android:id="@+id/title"
            style="@style/TextSecure.TitleTextStyle"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="center_vertical|start"
            android:drawablePadding="3dp"
            android:ellipsize="end"
            android:gravity="center_vertical"
            android:maxLines="1"
            android:transitionName="recipient_name"
            tools:ignore="UnusedAttribute"
            tools:text="J. Jonah Jameson" />

        <LinearLayout
            android:id="@+id/subtitle_container"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:orientation="horizontal">

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

            <androidx.appcompat.widget.AppCompatImageView
                android:id="@+id/verified_indicator"
                android:layout_width="12dp"
                android:layout_height="match_parent"
                android:layout_marginEnd="3dp"
                android:tint="@color/signal_inverse_transparent_80"
                android:visibility="gone"
                app:srcCompat="@drawable/ic_check_24"
                tools:visibility="visible" />

            <TextView
                android:id="@+id/verified_subtitle"
                style="@style/TextSecure.SubtitleTextStyle"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="center_vertical|start"
                android:layout_marginEnd="3dp"
                android:ellipsize="end"
                android:gravity="center_vertical"
                android:maxLines="1"
                android:text="@string/ConversationTitleView_verified"
                android:textColor="@color/signal_inverse_transparent_80"
                android:textDirection="ltr" />

            <org.thoughtcrime.securesms.components.emoji.EmojiTextView
                android:id="@+id/subtitle"
                style="@style/TextSecure.SubtitleTextStyle"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="center_vertical|start"
                android:ellipsize="end"
                android:gravity="center_vertical"
                android:maxLines="1"
                android:textColor="@color/signal_inverse_transparent_80"
                android:textDirection="ltr"
                tools:text="(123) 123-1234" />

        </LinearLayout>

    </LinearLayout>

</org.thoughtcrime.securesms.conversation.ConversationTitleView>