<?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="wrap_content"
    android:background="?selectableItemBackground"
    android:minHeight="?attr/listPreferredItemHeightSmall"
    android:orientation="horizontal"
    android:paddingStart="20dp"
    android:paddingTop="8dp"
    android:paddingEnd="?attr/dialogPreferredPadding"
    android:paddingBottom="8dp">

    <RadioButton
        android:id="@+id/single_select_item_radio"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:clickable="false"
        android:paddingEnd="20dp"
        android:theme="@style/Signal.Widget.CompoundButton.RadioButton"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent"
        tools:ignore="RtlSymmetry" />

    <CheckedTextView
        android:id="@+id/single_select_item_text"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:gravity="center_vertical"
        android:textAppearance="?android:attr/textAppearanceListItem"
        android:textColor="@color/signal_text_primary"
        app:layout_constraintBottom_toTopOf="@id/single_select_item_summary"
        app:layout_constraintStart_toEndOf="@id/single_select_item_radio"
        app:layout_constraintTop_toTopOf="parent"
        tools:text="Pick me!" />

    <TextView
        android:id="@+id/single_select_item_summary"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:textColor="@color/signal_text_secondary"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintStart_toStartOf="@id/single_select_item_text"
        app:layout_constraintTop_toBottomOf="@id/single_select_item_text"
        tools:text="Test" />

    <androidx.appcompat.widget.AppCompatImageView
        android:id="@+id/customizable_single_select_customize"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:background="?selectableItemBackground"
        android:contentDescription="@string/configurable_single_select__customize_option"
        android:padding="10dp"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintTop_toTopOf="parent"
        app:srcCompat="@drawable/ic_settings_24"
        app:tint="@color/signal_icon_tint_primary" />

    <View
        android:id="@+id/customizable_single_select_divider"
        android:layout_width="1dp"
        android:layout_height="0dp"
        android:layout_marginEnd="10dp"
        android:background="@color/signal_divider_minor"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toStartOf="@id/customizable_single_select_customize"
        app:layout_constraintTop_toTopOf="parent" />

    <androidx.constraintlayout.widget.Group
        android:id="@+id/customizable_single_select_customize_group"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:visibility="gone"
        app:constraint_referenced_ids="single_select_item_summary,customizable_single_select_customize,customizable_single_select_divider"
        tools:visibility="visible" />

</androidx.constraintlayout.widget.ConstraintLayout>
