<?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="?vctr_header_background"
    android:minHeight="?listPreferredItemHeight"
    tools:viewBindingIgnore="true">

    <TextView
        android:id="@+id/itemRoomDirectoryServerName"
        style="@style/Widget.Vector.TextView.Subtitle"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_marginStart="@dimen/layout_horizontal_margin"
        android:layout_marginEnd="8dp"
        android:ellipsize="end"
        android:lines="1"
        android:maxLines="2"
        android:textColor="?vctr_content_primary"
        android:textStyle="bold"
        app:layout_constraintBottom_toTopOf="@id/itemRoomDirectoryServerDescription"
        app:layout_constraintEnd_toStartOf="@id/itemRoomDirectoryServerRemove"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent"
        app:layout_constraintVertical_chainStyle="packed"
        app:layout_goneMarginEnd="@dimen/layout_horizontal_margin"
        tools:text="@tools:sample/lorem/random" />

    <TextView
        android:id="@+id/itemRoomDirectoryServerDescription"
        style="@style/Widget.Vector.TextView.Body"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_marginStart="@dimen/layout_horizontal_margin"
        android:layout_marginEnd="8dp"
        android:ellipsize="end"
        android:lines="1"
        android:maxLines="2"
        android:textColor="?vctr_content_secondary"
        android:visibility="gone"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toStartOf="@id/itemRoomDirectoryServerRemove"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@id/itemRoomDirectoryServerName"
        app:layout_goneMarginEnd="@dimen/layout_horizontal_margin"
        tools:text="@string/directory_your_server"
        tools:visibility="visible" />

    <ImageView
        android:id="@+id/itemRoomDirectoryServerRemove"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginStart="@dimen/layout_horizontal_margin"
        android:layout_marginEnd="@dimen/layout_horizontal_margin"
        android:contentDescription="@string/action_remove"
        android:padding="8dp"
        android:src="@drawable/ic_delete"
        android:visibility="gone"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintTop_toTopOf="parent"
        app:tint="?colorError"
        tools:ignore="MissingPrefix"
        tools:visibility="visible" />

</androidx.constraintlayout.widget.ConstraintLayout>
