<?xml version="1.0" encoding="utf-8"?>
<!--
  ~ F7cloud Talk - Android Client
  ~
  ~ SPDX-FileCopyrightText: 2023 Marcel Hibbe <dev@mhibbe.de>
  ~ 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:id="@+id/parent_container"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical">

    <com.google.android.material.appbar.AppBarLayout
        android:id="@+id/conversation_info_edit_appbar"
        android:layout_width="match_parent"
        android:layout_height="wrap_content">

        <com.google.android.material.appbar.MaterialToolbar
            android:id="@+id/conversation_info_edit_toolbar"
            android:layout_width="match_parent"
            android:layout_height="?attr/actionBarSize"
            android:background="@color/appbar"
            android:theme="?attr/actionBarPopupTheme"
            app:layout_scrollFlags="scroll|enterAlways"
            app:navigationIconTint="@color/fontAppbar"
            app:popupTheme="@style/appActionBarPopupMenu"
            app:titleTextColor="@color/fontAppbar"
            tools:title="@string/nc_app_product_name" />
    </com.google.android.material.appbar.AppBarLayout>


    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="vertical">

        <ImageView
            android:id="@+id/avatar_image"
            android:layout_width="@dimen/avatar_size_big"
            android:layout_height="@dimen/avatar_size_big"
            android:layout_marginTop="@dimen/standard_margin"
            android:layout_gravity="center"
            android:contentDescription="@string/avatar"
            tools:src="@drawable/account_circle_48dp" />

        <LinearLayout
            android:id="@+id/avatar_buttons"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_margin="@dimen/standard_margin"
            android:gravity="center"
            android:orientation="horizontal">

            <com.google.android.material.floatingactionbutton.FloatingActionButton
                android:id="@+id/avatar_upload"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginLeft="@dimen/standard_quarter_margin"
                android:layout_marginRight="@dimen/standard_quarter_margin"
                android:contentDescription="@string/upload_new_avatar_from_device"
                android:tint="@android:color/white"
                app:elevation="0dp"
                app:fabSize="mini"
                app:srcCompat="@drawable/upload" />

            <com.google.android.material.floatingactionbutton.FloatingActionButton
                android:id="@+id/avatar_choose"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginLeft="@dimen/standard_quarter_margin"
                android:layout_marginRight="@dimen/standard_quarter_margin"
                android:contentDescription="@string/choose_avatar_from_cloud"
                android:tint="@android:color/white"
                app:elevation="0dp"
                app:fabSize="mini"
                app:srcCompat="@drawable/ic_folder" />

            <com.google.android.material.floatingactionbutton.FloatingActionButton
                android:id="@+id/avatar_camera"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginLeft="@dimen/standard_quarter_margin"
                android:layout_marginRight="@dimen/standard_quarter_margin"
                android:contentDescription="@string/set_avatar_from_camera"
                android:tint="@android:color/white"
                app:elevation="0dp"
                app:fabSize="mini"
                app:srcCompat="@drawable/ic_baseline_photo_camera_24" />

            <com.google.android.material.floatingactionbutton.FloatingActionButton
                android:id="@+id/avatar_delete"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginLeft="@dimen/standard_quarter_margin"
                android:layout_marginRight="@dimen/standard_quarter_margin"
                android:contentDescription="@string/delete_avatar"
                android:tint="@android:color/white"
                app:elevation="0dp"
                app:fabSize="mini"
                app:srcCompat="@drawable/trashbin" />
        </LinearLayout>

        <com.google.android.material.textfield.TextInputLayout
            android:id="@+id/conversation_name_input_layout"
            style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_margin="@dimen/standard_margin"
            android:minHeight="@dimen/min_size_clickable_area"
            app:boxStrokeColor="@color/colorPrimary"
            app:errorTextAppearance="@style/ErrorAppearance"
            app:hintTextColor="@color/colorPrimary"
            android:hint="@string/nc_call_name">

            <ru.f7cloud.talk.utils.EmojiTextInputEditText
                android:id="@+id/conversation_name"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:imeOptions="actionNext"
                android:inputType="text"
                android:singleLine="true"
                android:maxLength="255"
                android:textAlignment="viewStart"
                tools:text="Our conversation name" />

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

        <com.google.android.material.textfield.TextInputLayout
            android:id="@+id/conversation_description_input_layout"
            style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_margin="@dimen/standard_margin"
            android:minHeight="@dimen/min_size_clickable_area"
            app:boxStrokeColor="@color/colorPrimary"
            app:errorTextAppearance="@style/ErrorAppearance"
            app:hintTextColor="@color/colorPrimary"
            app:counterEnabled="true"
            android:hint="@string/nc_conversation_description">

            <ru.f7cloud.talk.utils.EmojiTextInputEditText
                android:id="@+id/conversation_description"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:maxHeight="300dp"
                android:imeOptions="actionNext"
                android:inputType="text|textMultiLine"
                android:singleLine="true"
                android:textAlignment="viewStart"
                tools:text="Our conversation description" />

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

    </LinearLayout>

</LinearLayout>
