<?xml version="1.0" encoding="utf-8"?><!--
  ~ Nextcloud - Android Client
  ~
  ~ SPDX-FileCopyrightText: 2021 TSI-mc
  ~ SPDX-FileCopyrightText: 2018 Andy Scherzinger <info@andy-scherzinger.de>
  ~ SPDX-License-Identifier: AGPL-3.0-or-later OR GPL-2.0-only
-->
<androidx.core.widget.NestedScrollView 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:paddingTop="@dimen/standard_eight_padding">

    <FrameLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_below="@id/appbar">

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

            <LinearLayout
                android:id="@+id/shared_with_you_container"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginBottom="@dimen/standard_half_margin"
                android:orientation="horizontal"
                android:paddingLeft="@dimen/standard_padding"
                android:paddingTop="@dimen/standard_padding"
                android:paddingRight="@dimen/standard_padding">

                <ImageView
                    android:id="@+id/shared_with_you_avatar"
                    android:layout_width="@dimen/user_icon_size"
                    android:layout_height="@dimen/user_icon_size"
                    android:contentDescription="@string/avatar"
                    android:src="@drawable/ic_user_outline" />

                <LinearLayout
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:orientation="vertical"
                    android:paddingLeft="@dimen/standard_padding"
                    android:paddingTop="@dimen/standard_half_padding"
                    android:paddingRight="@dimen/standard_padding">

                    <TextView
                        android:id="@+id/shared_with_you_username"
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:textSize="@dimen/two_line_primary_text_size" />

                    <LinearLayout
                        android:id="@+id/shared_with_you_note_container"
                        android:layout_width="match_parent"
                        android:layout_height="match_parent"
                        android:orientation="horizontal"
                        android:paddingTop="@dimen/standard_half_padding"
                        tools:ignore="UseCompoundDrawables">

                        <ImageView
                            android:layout_width="16dp"
                            android:layout_height="16dp"
                            android:contentDescription="@string/note_icon_hint"
                            android:src="@drawable/file_text" />

                        <TextView
                            android:id="@+id/shared_with_you_note"
                            android:layout_width="0dp"
                            android:layout_height="wrap_content"
                            android:layout_weight="1"
                            android:paddingStart="@dimen/standard_half_padding"
                            android:paddingEnd="@dimen/standard_half_padding"
                            android:textSize="16sp" />
                    </LinearLayout>

                </LinearLayout>
            </LinearLayout>

            <LinearLayout
                android:id="@+id/search_container"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:orientation="horizontal"
                android:paddingStart="@dimen/standard_padding"
                android:paddingEnd="@dimen/zero">

                <ImageView
                    android:id="@+id/searchViewIcon"
                    android:layout_width="@dimen/user_icon_size"
                    android:layout_height="@dimen/user_icon_size"
                    android:layout_gravity="center_vertical"
                    android:contentDescription="@string/avatar"
                    android:padding="@dimen/standard_half_padding"
                    android:src="@drawable/ic_search_grey" />

                <androidx.appcompat.widget.SearchView
                    android:id="@+id/searchView"
                    style="@style/ownCloud.SearchView"
                    android:layout_width="0dp"
                    android:layout_height="wrap_content"
                    android:layout_marginStart="@dimen/zero"
                    android:layout_marginEnd="@dimen/standard_quarter_margin"
                    android:layout_weight="1"
                    android:hint="@string/share_search"
                    app:searchIcon="@null" />

                <androidx.appcompat.widget.AppCompatImageView
                    android:id="@+id/pick_contact_email_btn"
                    android:layout_width="@dimen/minimum_size_for_touchable_area"
                    android:layout_height="@dimen/minimum_size_for_touchable_area"
                    android:layout_gravity="center_vertical"
                    android:layout_marginEnd="@dimen/standard_quarter_margin"
                    android:contentDescription="@string/pick_contact_to_share_with"
                    android:padding="12dp"
                    android:src="@drawable/ic_contact_book" />

            </LinearLayout>

            <TextView
                android:paddingStart="@dimen/standard_padding"
                android:paddingEnd="@dimen/zero"
                android:paddingTop="@dimen/standard_half_padding"
                android:paddingBottom="@dimen/standard_half_padding"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="@string/internal_shares"
                android:textAppearance="?android:attr/textAppearanceMedium" />

            <androidx.recyclerview.widget.RecyclerView
                android:id="@+id/sharesList_internal"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:divider="@drawable/divider"
                android:dividerHeight="1dp"
                tools:listitem="@layout/file_details_share_link_share_item">

            </androidx.recyclerview.widget.RecyclerView>

            <com.google.android.material.button.MaterialButton
                android:id="@+id/sharesList_internal_show_all"
                style="@style/Nextcloud.Material.TextButton"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:text="@string/show_all" />

            <View
                android:id="@+id/divider2"
                android:layout_width="match_parent"
                android:layout_height="1dp"
                android:background="?android:attr/listDivider" />

            <TextView
                android:id="@+id/external_shares_headline"
                android:paddingStart="@dimen/standard_padding"
                android:paddingEnd="@dimen/zero"
                android:paddingTop="@dimen/standard_half_padding"
                android:paddingBottom="@dimen/standard_half_padding"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:text="@string/external_shares"
                android:textAppearance="?android:attr/textAppearanceMedium" />

            <com.google.android.material.button.MaterialButton
                android:id="@+id/create_link"
                style="@style/Widget.Material3.Button.OutlinedButton"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginStart="@dimen/standard_double_margin"
                android:layout_marginEnd="@dimen/standard_double_margin"
                app:icon="@drawable/file_link"
                app:iconGravity="textStart"
                android:text="@string/create_link" />

            <androidx.recyclerview.widget.RecyclerView
                android:id="@+id/sharesList_external"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:divider="@drawable/divider"
                android:dividerHeight="1dp"
                tools:listitem="@layout/file_details_share_link_share_item">

            </androidx.recyclerview.widget.RecyclerView>

            <com.google.android.material.button.MaterialButton
                android:id="@+id/sharesList_external_show_all"
                style="@style/Nextcloud.Material.TextButton"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:text="@string/show_all" />
        </LinearLayout>

        <include
            layout="@layout/file_details_sharing_shimmer"
            android:id="@+id/shimmer_layout"/>

    </FrameLayout>


</androidx.core.widget.NestedScrollView>
