<?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="?riotx_background"
    android:minHeight="@dimen/item_form_min_height">

    <TextView
        android:id="@+id/itemRoomAliasHash"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginStart="@dimen/layout_horizontal_margin"
        android:text="@string/matrix_room_alias_prefix"
        android:textSize="18sp"
        app:layout_constraintBaseline_toBaselineOf="@+id/itemRoomAliasTextInputLayout"
        app:layout_constraintStart_toStartOf="parent" />

    <com.google.android.material.textfield.TextInputLayout
        android:id="@+id/itemRoomAliasTextInputLayout"
        style="@style/VectorTextInputLayout"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_marginStart="8dp"
        android:layout_marginEnd="8dp"
        app:errorEnabled="true"
        app:layout_constraintBottom_toTopOf="@+id/itemRoomAliasDivider"
        app:layout_constraintEnd_toStartOf="@+id/itemRoomAliasHomeServer"
        app:layout_constraintStart_toEndOf="@+id/itemRoomAliasHash"
        app:layout_constraintTop_toTopOf="parent">

        <!-- android:imeOptions="actionDone" to fix a crash -->
        <com.google.android.material.textfield.TextInputEditText
            android:id="@+id/itemRoomAliasTextInputEditText"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:hint="@string/create_room_alias_hint"
            android:imeOptions="actionDone"
            android:inputType="text" />

    </com.google.android.material.textfield.TextInputLayout>

    <TextView
        android:id="@+id/itemRoomAliasHomeServer"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginEnd="@dimen/layout_horizontal_margin"
        android:maxWidth="200dp"
        android:textSize="18sp"
        app:layout_constraintBaseline_toBaselineOf="@+id/itemRoomAliasTextInputLayout"
        app:layout_constraintEnd_toEndOf="parent"
        tools:text=":matrix.org" />

    <View
        android:id="@+id/itemRoomAliasDivider"
        android:layout_width="0dp"
        android:layout_height="1dp"
        android:background="?riotx_header_panel_border_mobile"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent" />

</androidx.constraintlayout.widget.ConstraintLayout>
