<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout 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="match_parent"
    android:layout_height="64dp"
    android:background="?selectableItemBackground"
    android:clickable="true"
    android:focusable="true">

    <org.thoughtcrime.securesms.components.AvatarImageView
        android:id="@+id/recipient_avatar"
        android:layout_width="40dp"
        android:layout_height="40dp"
        android:layout_marginStart="@dimen/dsl_settings_gutter"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent" />

    <org.thoughtcrime.securesms.components.emoji.EmojiTextView
        android:id="@+id/recipient_name"
        android:layout_width="0dp"
        android:layout_height="0dp"
        android:layout_marginStart="16dp"
        android:gravity="start|center_vertical"
        app:layout_goneMarginEnd="@dimen/dsl_settings_gutter"
        android:textAlignment="viewStart"
        android:textAppearance="@style/TextAppearance.Signal.Body1"
        android:maxLines="2"
        app:layout_constraintBottom_toTopOf="@+id/sms_contact"
        app:layout_constraintEnd_toStartOf="@+id/sms_warning"
        app:layout_constraintHorizontal_bias="0"
        app:layout_constraintStart_toEndOf="@+id/recipient_avatar"
        app:layout_constraintTop_toTopOf="@+id/recipient_avatar"
        tools:text="@tools:sample/full_names" />

    <TextView
        android:id="@+id/sms_contact"
        android:layout_width="0dp"
        android:layout_height="0dp"
        android:layout_marginStart="16dp"
        android:gravity="start|center_vertical"
        android:text="@string/AddGroupDetailsFragment__sms_contact"
        android:textAlignment="viewStart"
        android:textAppearance="@style/TextAppearance.Signal.Body2"
        android:textColor="@color/signal_text_secondary"
        app:layout_constraintBottom_toBottomOf="@id/recipient_avatar"
        app:layout_constraintEnd_toEndOf="@+id/recipient_name"
        app:layout_constraintHorizontal_bias="0"
        app:layout_constraintStart_toEndOf="@+id/recipient_avatar"
        app:layout_constraintTop_toBottomOf="@+id/recipient_name" />


    <ImageView
        android:id="@+id/sms_warning"
        android:layout_width="18dp"
        android:layout_height="18dp"
        android:layout_marginStart="16dp"
        android:layout_marginEnd="@dimen/dsl_settings_gutter"
        android:scaleType="centerInside"
        app:layout_constraintBottom_toBottomOf="@id/recipient_name"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toEndOf="@id/recipient_name"
        app:layout_constraintTop_toTopOf="@id/recipient_name"
        app:srcCompat="@drawable/ic_error_outline_24" />

</androidx.constraintlayout.widget.ConstraintLayout>