<?xml version="1.0" encoding="utf-8"?>
<!--
  ~ F7cloud Talk - Android Client
  ~
  ~ SPDX-FileCopyrightText: 2022 Andy Scherzinger <info@andy-scherzinger.de>
  ~ SPDX-FileCopyrightText: 2022 Marcel Hibbe <dev@mhibbe.de>
  ~ SPDX-FileCopyrightText: 2017-2018 Mario Danic <mario@lovelyhq.com>
  ~ SPDX-License-Identifier: GPL-3.0-or-later
-->
<LinearLayout 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:minHeight="@dimen/min_size_clickable_area"
    android:orientation="horizontal"
    android:paddingStart="@dimen/dialog_padding"
    android:paddingBottom="@dimen/standard_half_margin"
    android:paddingEnd="@dimen/zero"
    tools:background="@color/white">

    <com.google.android.material.textfield.TextInputLayout
        android:id="@+id/poll_option_text_input_layout"
        style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:minHeight="@dimen/min_size_clickable_area"
        android:layout_marginEnd="@dimen/standard_half_margin"
        android:layout_weight="1"
        app:boxStrokeColor="@color/colorPrimary"
        app:errorTextAppearance="@style/ErrorAppearance"
        app:hintTextColor="@color/colorPrimary">

        <ru.f7cloud.talk.utils.EmojiTextInputEditText
            android:id="@+id/poll_option_text_edit"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:imeOptions="actionNext"
            android:inputType="text"
            android:singleLine="true"
            android:textAlignment="viewStart" />

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

    <com.google.android.material.button.MaterialButton
        android:id="@+id/poll_option_delete"
        style="@style/Widget.AppTheme.Button.IconButton"
        android:layout_width="@dimen/min_size_clickable_area"
        android:layout_height="@dimen/min_size_clickable_area"
        android:layout_marginEnd="@dimen/standard_half_margin"
        android:contentDescription="@string/polls_option_delete"
        app:cornerRadius="@dimen/button_corner_radius"
        app:icon="@drawable/ic_baseline_close_24"
        app:iconTint="@color/fontAppbar" />

</LinearLayout>
