<?xml version="1.0" encoding="utf-8"?>
<!--
  ~ Nextcloud - Android Client
  ~
  ~ SPDX-FileCopyrightText: 2024 Andy Scherzinger <info@andy-scherzinger.de>
  ~ SPDX-FileCopyrightText: 2024 Tobias Kaminsky <tobias@kaminsky.me>
  ~ SPDX-License-Identifier: AGPL-3.0-or-later
  -->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="@dimen/min_list_item_size"
    android:orientation="horizontal"
    android:paddingStart="@dimen/standard_half_padding"
    android:paddingEnd="@dimen/standard_half_padding">

    <ImageView
        android:layout_width="@dimen/file_icon_size"
        android:layout_height="@dimen/file_icon_size"
        android:layout_gravity="center_vertical"
        android:contentDescription="@null"
        android:src="@drawable/folder" />

    <LinearLayout
        android:layout_width="0dp"
        android:layout_weight="1"
        android:layout_height="@dimen/min_list_item_size"
        android:layout_marginStart="@dimen/standard_half_margin"
        android:gravity="center_vertical|start"
        android:orientation="vertical">

        <TextView
            android:id="@+id/name"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:ellipsize="middle"
            android:gravity="center_vertical"
            android:singleLine="true"
            android:textColor="@color/text_color"
            android:textSize="@dimen/two_line_primary_text_size"
            tools:text="Folder abc" />

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

            <TextView
                android:id="@+id/size"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:gravity="center_vertical"
                android:textColor="@color/list_item_lastmod_and_filesize_text"
                android:textSize="@dimen/two_line_secondary_text_size"
                tools:text="241 Mb" />

            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:gravity="end"
                android:paddingStart="@dimen/zero"
                android:paddingEnd="@dimen/standard_quarter_padding"
                android:text="@string/info_separator"
                android:textColor="@color/list_item_lastmod_and_filesize_text"
                android:textSize="@dimen/two_line_secondary_text_size" />

            <TextView
                android:id="@+id/sync_timestamp"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:gravity="center_vertical"
                android:textColor="@color/list_item_lastmod_and_filesize_text"
                android:textSize="@dimen/two_line_secondary_text_size"
                tools:text="5 min ago" />

            <TextView
                android:id="@+id/sync_result_divider"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:gravity="end"
                android:paddingStart="@dimen/zero"
                android:paddingEnd="@dimen/standard_quarter_padding"
                android:text="@string/info_separator"
                android:textColor="@color/list_item_lastmod_and_filesize_text"
                android:textSize="@dimen/two_line_secondary_text_size" />

            <TextView
                android:id="@+id/sync_result"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:gravity="center_vertical"
                android:textColor="@color/list_item_lastmod_and_filesize_text"
                android:textSize="@dimen/two_line_secondary_text_size"
                tools:text="Success" />

        </LinearLayout>
    </LinearLayout>

    <ImageView
        android:id="@+id/unset"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="center_vertical"
        android:contentDescription="@string/unset_internal_two_way_sync_description"
        android:src="@drawable/ic_close" />

</LinearLayout>
