<?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
-->
<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/shareContainer"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
    android:paddingTop="@dimen/standard_eight_padding">

    <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:padding="12dp"
            android:layout_marginEnd="@dimen/standard_quarter_margin"
            android:src="@drawable/ic_contact_book" />

    </LinearLayout>

    <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" />

        <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:text="@string/shared_with_you_by"
                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>

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

</LinearLayout>
