<?xml version="1.0" encoding="utf-8"?>
<!--
  ~ F7cloud Talk - Android Client
  ~
  ~ SPDX-FileCopyrightText: 2017 Mario Danic <mario@lovelyhq.com>
  ~ SPDX-License-Identifier: GPL-3.0-or-later
-->
<RelativeLayout 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:paddingStart="@dimen/standard_padding"
    android:paddingTop="@dimen/standard_padding"
    android:paddingEnd="@dimen/standard_half_padding">

    <com.google.android.material.textfield.TextInputLayout
        android:id="@+id/text_input_layout"
        style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginEnd="@dimen/standard_half_margin"
        android:layout_toStartOf="@id/smileyButton"
        android:hint="@string/nc_call_name"
        app:errorTextAppearance="@style/ErrorAppearance"
        app:passwordToggleTint="@color/grey_600"
        app:boxStrokeColor="@color/colorPrimary"
        app:hintTextColor="@color/colorPrimary">

        <ru.f7cloud.talk.utils.EmojiTextInputEditText
            android:id="@+id/text_edit"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:imeOptions="actionDone"
            android:inputType="textUri"
            android:singleLine="true"
            android:textAlignment="viewStart"
            android:textColor="@color/high_emphasis_text" />

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

    <ImageButton
        android:id="@+id/smileyButton"
        android:layout_width="48dp"
        android:layout_height="match_parent"
        android:layout_alignBottom="@id/text_input_layout"
        android:layout_alignParentEnd="true"
        android:layout_marginStart="-4dp"
        android:background="@color/transparent"
        android:contentDescription="@string/nc_add_emojis"
        android:src="@drawable/ic_insert_emoticon_black_24dp"
        app:tint="@color/medium_emphasis_text"
        tools:visibility="visible" />

</RelativeLayout>
