<?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="?android:colorBackground"
    android:clickable="true"
    android:focusable="true"
    android:foreground="?attr/selectableItemBackground"
    android:minHeight="64dp"
    android:paddingStart="@dimen/layout_horizontal_margin"
    android:paddingTop="8dp"
    android:paddingEnd="@dimen/layout_horizontal_margin"
    android:paddingBottom="8dp">

    <ImageView
        android:id="@+id/matrixItemAvatar"
        android:layout_width="32dp"
        android:layout_height="32dp"
        android:layout_centerVertical="true"
        android:importantForAccessibility="no"
        android:scaleType="centerInside"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent"
        tools:src="@sample/user_round_avatars" />

    <im.vector.app.core.ui.views.ShieldImageView
        android:id="@+id/matrixItemAvatarDecoration"
        android:layout_width="20dp"
        android:layout_height="20dp"
        app:layout_constraintCircle="@+id/matrixItemAvatar"
        app:layout_constraintCircleAngle="135"
        app:layout_constraintCircleRadius="16dp"
        tools:ignore="MissingConstraints" />

    <TextView
        android:id="@+id/matrixItemTitle"
        style="@style/Widget.Vector.TextView.Subtitle"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_marginStart="16dp"
        android:layout_marginEnd="8dp"
        android:ellipsize="end"
        android:maxLines="1"
        android:textColor="?vctr_content_primary"
        app:layout_constrainedWidth="true"
        app:layout_constraintBottom_toTopOf="@+id/matrixItemSubtitle"
        app:layout_constraintEnd_toStartOf="@+id/matrixItemProgress"
        app:layout_constraintStart_toEndOf="@id/matrixItemAvatar"
        app:layout_constraintTop_toTopOf="parent"
        app:layout_goneMarginEnd="80dp"
        tools:text="@sample/users.json/data/displayName" />

    <TextView
        android:id="@+id/matrixItemSubtitle"
        style="@style/Widget.Vector.TextView.Body"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_marginStart="16dp"
        android:layout_marginEnd="8dp"
        android:ellipsize="end"
        android:maxLines="1"
        android:textColor="?vctr_content_secondary"
        app:layout_constrainedWidth="true"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toStartOf="@+id/matrixItemProgress"
        app:layout_constraintStart_toEndOf="@id/matrixItemAvatar"
        app:layout_constraintTop_toBottomOf="@id/matrixItemTitle"
        app:layout_goneMarginEnd="8dp"
        tools:text="@sample/users.json/data/id" />

    <ProgressBar
        android:id="@+id/matrixItemProgress"
        style="?android:attr/progressBarStyle"
        android:layout_width="20dp"
        android:layout_height="20dp"
        android:layout_marginEnd="8dp"
        android:visibility="gone"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toStartOf="@id/matrixItemEditable"
        app:layout_constraintTop_toTopOf="parent"
        tools:visibility="visible" />

    <ImageView
        android:id="@+id/matrixItemEditable"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:importantForAccessibility="no"
        android:src="@drawable/ic_arrow_right"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintTop_toTopOf="parent"
        app:tint="?vctr_content_secondary"
        tools:ignore="MissingPrefix" />

</androidx.constraintlayout.widget.ConstraintLayout>
