<?xml version="1.0" encoding="utf-8"?>
<!--
  ~ Nextcloud - Android Client
  ~
  ~ SPDX-FileCopyrightText: 2018 Andy Scherzinger <info@andy-scherzinger.de>
  ~ SPDX-License-Identifier: AGPL-3.0-or-later OR GPL-2.0-only
-->
<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="match_parent"
    android:orientation="vertical"
    android:paddingBottom="@dimen/standard_half_padding"
    app:layout_behavior="com.google.android.material.bottomsheet.BottomSheetBehavior">

    <com.google.android.material.bottomsheet.BottomSheetDragHandleView
        android:layout_width="match_parent"
        android:layout_height="wrap_content" />

    <TextView
        android:id="@+id/add_to_cloud"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:paddingHorizontal="@dimen/standard_padding"
        android:paddingBottom="@dimen/standard_half_padding"
        android:text="@string/add_to_cloud"
        android:textAppearance="@style/TextAppearance.Material3.HeadlineSmall"
        android:textColor="@color/text_color" />

    <androidx.core.widget.NestedScrollView
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@+id/title">

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

            <LinearLayout
                android:id="@+id/menu_upload_files"
                android:layout_width="match_parent"
                android:layout_height="@dimen/bottom_sheet_item_height"
                android:background="?android:attr/selectableItemBackground"
                android:gravity="center_vertical"
                android:orientation="horizontal"
                android:paddingLeft="@dimen/standard_padding"
                android:paddingTop="@dimen/standard_half_padding"
                android:paddingRight="@dimen/standard_padding"
                android:paddingBottom="@dimen/standard_half_padding"
                tools:ignore="UseCompoundDrawables">

                <ImageView
                    android:id="@+id/menu_icon_upload_files"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:contentDescription="@null"
                    android:src="@drawable/ic_action_upload"
                    app:tint="@color/primary" />

                <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_gravity="center_vertical"
                    android:layout_marginStart="@dimen/bottom_sheet_text_start_margin"
                    android:text="@string/upload_files"
                    android:textColor="@color/text_color"
                    android:textSize="@dimen/bottom_sheet_text_size" />

            </LinearLayout>

            <LinearLayout
                android:id="@+id/menu_upload_from_app"
                android:layout_width="match_parent"
                android:layout_height="@dimen/bottom_sheet_item_height"
                android:background="?android:attr/selectableItemBackground"
                android:gravity="center_vertical"
                android:orientation="horizontal"
                android:paddingLeft="@dimen/standard_padding"
                android:paddingTop="@dimen/standard_half_padding"
                android:paddingRight="@dimen/standard_padding"
                android:paddingBottom="@dimen/standard_half_padding"
                tools:ignore="UseCompoundDrawables">

                <ImageView
                    android:id="@+id/menu_icon_upload_from_app"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:contentDescription="@null"
                    android:src="@drawable/ic_import"
                    app:tint="@color/primary" />

                <TextView
                    android:id="@+id/upload_content_from_other_apps"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_gravity="center_vertical"
                    android:layout_marginStart="@dimen/bottom_sheet_text_start_margin"
                    android:text="@string/upload_content_from_other_apps"
                    android:textColor="@color/text_color"
                    android:textSize="@dimen/bottom_sheet_text_size" />

            </LinearLayout>

            <LinearLayout
                android:id="@+id/menu_direct_camera_upload"
                android:layout_width="match_parent"
                android:layout_height="@dimen/bottom_sheet_item_height"
                android:background="?android:attr/selectableItemBackground"
                android:gravity="center_vertical"
                android:orientation="horizontal"
                android:paddingLeft="@dimen/standard_padding"
                android:paddingTop="@dimen/standard_half_padding"
                android:paddingRight="@dimen/standard_padding"
                android:paddingBottom="@dimen/standard_half_padding"
                tools:ignore="UseCompoundDrawables">

                <ImageView
                    android:id="@+id/menu_icon_direct_camera_upload"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:contentDescription="@null"
                    android:src="@drawable/ic_camera"
                    app:tint="@color/primary" />

                <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_gravity="center_vertical"
                    android:layout_marginStart="@dimen/bottom_sheet_text_start_margin"
                    android:text="@string/upload_direct_camera_upload"
                    android:textColor="@color/text_color"
                    android:textSize="@dimen/bottom_sheet_text_size" />

            </LinearLayout>

            <LinearLayout
                android:id="@+id/menu_scan_doc_upload"
                android:layout_width="match_parent"
                android:layout_height="@dimen/bottom_sheet_item_height"
                android:background="?android:attr/selectableItemBackground"
                android:gravity="center_vertical"
                android:orientation="horizontal"
                android:paddingLeft="@dimen/standard_padding"
                android:paddingTop="@dimen/standard_half_padding"
                android:paddingRight="@dimen/standard_padding"
                android:paddingBottom="@dimen/standard_half_padding"
                tools:ignore="UseCompoundDrawables">

                <ImageView
                    android:id="@+id/menu_icon_scan_doc_upload"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:contentDescription="@null"
                    android:src="@drawable/ic_scan_document"
                    app:tint="@color/primary" />

                <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_gravity="center_vertical"
                    android:layout_marginStart="@dimen/bottom_sheet_text_start_margin"
                    android:text="@string/upload_scan_doc_upload"
                    android:textColor="@color/text_color"
                    android:textSize="@dimen/bottom_sheet_text_size" />
            </LinearLayout>

            <LinearLayout
                android:id="@+id/menu_mkdir"
                android:layout_width="match_parent"
                android:layout_height="@dimen/bottom_sheet_item_height"
                android:background="?android:attr/selectableItemBackground"
                android:gravity="center_vertical"
                android:orientation="horizontal"
                android:paddingLeft="@dimen/standard_padding"
                android:paddingTop="@dimen/standard_half_padding"
                android:paddingRight="@dimen/standard_padding"
                android:paddingBottom="@dimen/standard_half_padding"
                tools:ignore="UseCompoundDrawables">

                <ImageView
                    android:id="@+id/menu_icon_mkdir"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:contentDescription="@null"
                    android:src="@drawable/ic_action_create_dir"
                    app:tint="@color/primary" />

                <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_gravity="center_vertical"
                    android:layout_marginStart="@dimen/bottom_sheet_text_start_margin"
                    android:text="@string/create_new_folder"
                    android:textColor="@color/text_color"
                    android:textSize="@dimen/bottom_sheet_text_size" />

            </LinearLayout>

            <LinearLayout
                android:id="@+id/templates"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:orientation="vertical"
                android:visibility="gone"
                tools:visibility="visible">

                <LinearLayout
                    android:id="@+id/menu_new_document"
                    android:layout_width="match_parent"
                    android:layout_height="@dimen/bottom_sheet_item_height"
                    android:background="?android:attr/selectableItemBackground"
                    android:gravity="center_vertical"
                    android:orientation="horizontal"
                    android:paddingLeft="@dimen/standard_padding"
                    android:paddingTop="@dimen/standard_half_padding"
                    android:paddingRight="@dimen/standard_padding"
                    android:paddingBottom="@dimen/standard_half_padding"
                    tools:ignore="UseCompoundDrawables">

                    <ImageView
                        android:id="@+id/menu_icon_new_document"
                        android:layout_width="24dp"
                        android:layout_height="24dp"
                        android:contentDescription="@null"
                        android:src="@drawable/file_doc" />

                    <TextView
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_gravity="center_vertical"
                        android:layout_marginStart="@dimen/bottom_sheet_text_start_margin"
                        android:text="@string/create_new_document"
                        android:textColor="@color/text_color"
                        android:textSize="@dimen/bottom_sheet_text_size" />
                </LinearLayout>

                <LinearLayout
                    android:id="@+id/menu_new_spreadsheet"
                    android:layout_width="match_parent"
                    android:layout_height="@dimen/bottom_sheet_item_height"
                    android:background="?android:attr/selectableItemBackground"
                    android:gravity="center_vertical"
                    android:orientation="horizontal"
                    android:paddingLeft="@dimen/standard_padding"
                    android:paddingTop="@dimen/standard_half_padding"
                    android:paddingRight="@dimen/standard_padding"
                    android:paddingBottom="@dimen/standard_half_padding"
                    tools:ignore="UseCompoundDrawables">

                    <ImageView
                        android:id="@+id/menu_icon_new_spreadsheet"
                        android:layout_width="24dp"
                        android:layout_height="24dp"
                        android:contentDescription="@null"
                        android:src="@drawable/file_xls" />

                    <TextView
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_gravity="center_vertical"
                        android:layout_marginStart="@dimen/bottom_sheet_text_start_margin"
                        android:text="@string/create_new_spreadsheet"
                        android:textColor="@color/text_color"
                        android:textSize="@dimen/bottom_sheet_text_size" />
                </LinearLayout>

                <LinearLayout
                    android:id="@+id/menu_new_presentation"
                    android:layout_width="match_parent"
                    android:layout_height="@dimen/bottom_sheet_item_height"
                    android:background="?android:attr/selectableItemBackground"
                    android:gravity="center_vertical"
                    android:orientation="horizontal"
                    android:paddingLeft="@dimen/standard_padding"
                    android:paddingTop="@dimen/standard_half_padding"
                    android:paddingRight="@dimen/standard_padding"
                    android:paddingBottom="@dimen/standard_half_padding"
                    tools:ignore="UseCompoundDrawables">

                    <ImageView
                        android:id="@+id/menu_icon_new_presentation"
                        android:layout_width="24dp"
                        android:layout_height="24dp"
                        android:contentDescription="@null"
                        android:src="@drawable/file_ppt" />

                    <TextView
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_gravity="center_vertical"
                        android:layout_marginStart="@dimen/bottom_sheet_text_start_margin"
                        android:text="@string/create_new_presentation"
                        android:textColor="@color/text_color"
                        android:textSize="@dimen/bottom_sheet_text_size" />
                </LinearLayout>
            </LinearLayout>

            <LinearLayout
                android:id="@+id/creators_container"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:orientation="vertical"
                android:visibility="gone"
                tools:visibility="visible">

                <LinearLayout
                    android:id="@+id/creators"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:orientation="vertical" />
            </LinearLayout>

            <View
                android:id="@+id/menu_create_rich_workspace_divider"
                android:layout_width="match_parent"
                android:layout_height="1dp"
                android:layout_marginStart="@dimen/bottom_sheet_menu_item_divider_standard_margin"
                android:layout_marginTop="@dimen/standard_half_margin"
                android:layout_marginBottom="@dimen/standard_half_margin"
                android:background="@color/list_divider_background" />

            <LinearLayout
                android:id="@+id/menu_create_rich_workspace"
                android:layout_width="match_parent"
                android:layout_height="@dimen/bottom_sheet_item_height"
                android:background="?android:attr/selectableItemBackground"
                android:gravity="center_vertical"
                android:orientation="horizontal"
                android:paddingLeft="@dimen/standard_padding"
                android:paddingRight="@dimen/standard_padding"
                tools:ignore="UseCompoundDrawables">

                <ImageView
                    android:id="@+id/menu_icon_add_folder_info"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:contentDescription="@null"
                    android:src="@drawable/ic_post_add"
                    app:tint="@color/primary" />

                <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_gravity="center_vertical"
                    android:layout_marginStart="@dimen/bottom_sheet_text_start_margin"
                    android:contentDescription="@string/creates_rich_workspace"
                    android:text="@string/create_rich_workspace"
                    android:textColor="@color/text_color"
                    android:textSize="@dimen/bottom_sheet_text_size" />

            </LinearLayout>

        </LinearLayout>

    </androidx.core.widget.NestedScrollView>

</LinearLayout>
