<?xml version="1.0" encoding="utf-8"?>
<!--
  ~ Nextcloud - Android Client
  ~
  ~ SPDX-FileCopyrightText: 2021 TSI-mc
  ~ SPDX-FileCopyrightText: 2020 Andy Scherzinger <info@andy-scherzinger.de>
  ~ SPDX-FileCopyrightText: 2020 Tobias Kaminsky <tobias@kaminsky.me>
  ~ SPDX-FileCopyrightText: 2020 Nextcloud GmbH
  ~ SPDX-License-Identifier: AGPL-3.0-or-later OR GPL-2.0-only
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:id="@+id/share_by_link_container"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:minHeight="@dimen/sharee_list_item_size"
    android:orientation="horizontal">

    <ImageView
        android:id="@+id/icon"
        android:layout_width="@dimen/share_icon_size"
        android:layout_height="@dimen/share_icon_size"
        android:layout_gravity="center_vertical"
        android:layout_marginStart="@dimen/standard_margin"
        android:layout_marginEnd="@dimen/standard_margin"
        android:background="@drawable/round_bgnd"
        android:contentDescription="@string/share"
        android:padding="@dimen/standard_half_padding"
        android:src="@drawable/shared_via_link" />

    <LinearLayout
        android:id="@+id/share_name_layout"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_gravity="center_vertical"
        android:layout_weight="1"
        android:orientation="vertical">

        <TextView
            android:id="@+id/name"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:ellipsize="end"
            android:gravity="center_vertical"
            android:singleLine="true"
            android:text="@string/share_via_link_section_title"
            android:textColor="@color/text_color"
            android:textSize="@dimen/two_line_primary_text_size" />

        <TextView
            android:id="@+id/subline"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:ellipsize="end"
            android:gravity="center_vertical"
            android:visibility="gone"
            android:singleLine="true"
            tools:text="@string/placeholder_remaining_downloads"
            tools:visibility="visible"
            android:textColor="@color/text_color"
            android:textSize="@dimen/two_line_primary_text_size" />

        <androidx.appcompat.widget.AppCompatTextView
            android:id="@+id/permission_name"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:gravity="center_vertical"
            android:singleLine="true"
            tools:text="@string/placeholder_view_only"
            app:drawableEndCompat="@drawable/ic_baseline_arrow_drop_down_24"
            app:drawableTint="@color/primary"
            app:drawableRightCompat="@drawable/ic_baseline_arrow_drop_down_24"
            android:textColor="@color/primary"
            android:textSize="@dimen/two_line_secondary_text_size" />
    </LinearLayout>

    <ImageView
        android:id="@+id/copy_link"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="center_vertical"
        android:contentDescription="@string/copy_link"
        android:paddingStart="@dimen/standard_padding"
        android:paddingTop="@dimen/standard_quarter_margin"
        android:paddingEnd="@dimen/standard_padding"
        android:paddingBottom="@dimen/standard_quarter_margin"
        android:scaleType="fitCenter"
        android:src="@drawable/ic_content_copy" />

    <ImageView
        android:id="@+id/overflow_menu"
        android:layout_width="wrap_content"
        android:layout_height="match_parent"
        android:contentDescription="@string/overflow_menu"
        android:paddingStart="@dimen/standard_padding"
        android:paddingEnd="@dimen/standard_padding"
        android:src="@drawable/ic_dots_vertical" />

</LinearLayout>
