<?xml version="1.0" encoding="utf-8"?><!-- https://tinyurl.com/PresenceListInRooms -->
<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"
    tools:viewBindingIgnore="true">

    <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="16dp"
        android:layout_height="16dp"
        android:layout_marginStart="5dp"
        android:layout_marginTop="2dp"
        app:layout_constraintBottom_toBottomOf="@id/matrixItemTitle"
        app:layout_constraintStart_toEndOf="@id/matrixItemAvatar"
        app:layout_constraintTop_toTopOf="@id/matrixItemTitle" />

    <im.vector.app.core.ui.views.PresenceStateImageView
        android:id="@+id/matrixItemPresenceImageView"
        android:layout_width="12dp"
        android:layout_height="12dp"
        android:background="@drawable/background_circle"
        android:importantForAccessibility="no"
        android:padding="2dp"
        android:visibility="gone"
        app:layout_constraintCircle="@id/matrixItemAvatar"
        app:layout_constraintCircleAngle="135"
        app:layout_constraintCircleRadius="16dp"
        tools:ignore="MissingConstraints"
        tools:src="@drawable/ic_presence_offline"
        tools:visibility="visible" />

    <TextView
        android:id="@+id/matrixItemTitle"
        style="@style/Widget.Vector.TextView.Subtitle"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_marginStart="4dp"
        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/matrixItemIgnored"
        app:layout_constraintStart_toEndOf="@id/matrixItemAvatarDecoration"
        app:layout_constraintTop_toTopOf="parent"
        app:layout_goneMarginEnd="80dp"
        app:layout_goneMarginStart="7dp"
        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="7dp"
        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/matrixItemIgnored"
        app:layout_constraintStart_toEndOf="@id/matrixItemAvatar"
        app:layout_constraintTop_toBottomOf="@id/matrixItemTitle"
        app:layout_goneMarginEnd="8dp"
        tools:text="@sample/users.json/data/id" />

    <ImageView
        android:id="@+id/matrixItemIgnored"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginEnd="4dp"
        android:importantForAccessibility="no"
        android:src="@drawable/ic_settings_root_ignored_users"
        android:visibility="gone"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toStartOf="@id/matrixItemPowerLevelLabel"
        app:layout_constraintTop_toTopOf="parent"
        app:tint="?colorError"
        tools:visibility="visible" />

    <TextView
        android:id="@+id/matrixItemPowerLevelLabel"
        style="@style/Widget.Vector.TextView.Caption"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginEnd="8dp"
        android:textColor="?vctr_content_primary"
        android:visibility="gone"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toStartOf="@id/matrixItemEditable"
        app:layout_constraintTop_toTopOf="parent"
        tools:text="Admin"
        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>
