<?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:id="@+id/quick_reply_container"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:background="?attr/cardviewColor"
    android:padding="10dp"
    android:visibility="gone">

    <TextView
        android:id="@+id/warning_message"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="@drawable/red_border"
        android:gravity="center"
        android:text="@string/reply_might_be_useless"
        android:textColor="@color/red_1"
        android:visibility="gone"
        app:layout_constraintTop_toTopOf="parent" />

    <app.fedilab.android.helper.MastalabAutoCompleteTextView
        android:id="@+id/quick_reply_text"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginTop="5dp"
        android:gravity="top|start"
        android:hint="@string/toot_placeholder"
        android:inputType="textMultiLine|textCapSentences"
        android:minLines="4"
        app:layout_constraintTop_toBottomOf="@id/warning_message"
        app:layout_goneMarginTop="0dp" />

    <ImageView
        android:id="@+id/quick_reply_switch_to_full"
        android:layout_width="30dp"
        android:layout_height="30dp"
        android:layout_marginTop="10dp"
        android:layout_marginEnd="10dp"
        android:contentDescription="@string/fullscreen"
        android:src="@drawable/ic_zoom_out"
        android:tint="?iconColor"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@id/quick_reply_text" />

    <TextView
        android:id="@+id/toot_space_left"
        android:layout_width="wrap_content"
        android:layout_height="30dp"
        android:layout_marginStart="10dp"
        android:layout_marginTop="10dp"
        android:layout_weight="1"
        android:gravity="center_vertical"
        android:text="0"
        android:textColor="?colorAccent"
        app:layout_constraintEnd_toStartOf="@id/quick_reply_emoji"
        app:layout_constraintStart_toEndOf="@id/quick_reply_switch_to_full"
        app:layout_constraintTop_toBottomOf="@id/quick_reply_text"
        tools:ignore="HardcodedText" />

    <ImageView
        android:id="@+id/quick_reply_emoji"
        android:layout_width="30dp"
        android:layout_height="30dp"
        android:layout_marginTop="10dp"
        android:layout_marginEnd="10dp"
        android:contentDescription="@string/emoji_picker"
        android:src="@drawable/ic_insert_emoticon"
        android:tint="?iconColor"
        app:layout_constraintEnd_toStartOf="@id/quick_reply_privacy"
        app:layout_constraintTop_toBottomOf="@id/quick_reply_text" />

    <ImageView
        android:id="@+id/quick_reply_privacy"
        android:layout_width="30dp"
        android:layout_height="30dp"
        android:layout_marginTop="10dp"
        android:layout_marginEnd="10dp"
        android:contentDescription="@string/toot_visibility_tilte"
        android:src="@drawable/ic_public"
        android:tint="?iconColor"
        app:layout_constraintEnd_toStartOf="@id/quick_reply_button"
        app:layout_constraintTop_toBottomOf="@id/quick_reply_text" />

    <Button
        android:id="@+id/quick_reply_button"
        style="@style/Widget.AppCompat.Button.Small"
        android:layout_width="wrap_content"
        android:layout_height="40dp"
        android:layout_marginTop="5dp"
        android:text="@string/reply"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintTop_toBottomOf="@id/quick_reply_text" />

</androidx.constraintlayout.widget.ConstraintLayout>
