summaryrefslogtreecommitdiff
path: root/android/app/src/main/res/layout/file_list_item.xml
blob: 28c2abe6f98001c4aa1d89120e42ef1a08cfa24a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<?xml version="1.0" encoding="utf-8"?>
<!--
 This file is part of the LibreOffice project.
 This Source Code Form is subject to the terms of the Mozilla Public
 License, v. 2.0. If a copy of the MPL was not distributed with this
 file, You can obtain one at http://mozilla.org/MPL/2.0/.
 -->
<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="48dp"
    android:orientation="horizontal"
    android:layout_marginStart="@dimen/list_item_margin"
    android:layout_marginLeft="@dimen/list_item_margin"
    android:layout_marginEnd="@dimen/list_item_margin"
    android:layout_marginRight="@dimen/list_item_margin">
    <ImageView
        android:id="@+id/file_item_icon"
        tools:src="@drawable/ic_folder_black_24dp"
        tools:tint="@color/text_color_secondary"
        android:layout_height="match_parent"
        android:layout_width="@dimen/file_icon_width"
        android:layout_marginEnd="@dimen/file_icon_margin_end"
        android:layout_marginRight="@dimen/file_icon_margin_end"
        android:layout_gravity="center"
        android:contentDescription="@string/file_icon_desc" />
    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="48dp"
        android:orientation="horizontal">
        <TextView
            android:id="@+id/file_item_name"
            tools:text="file or dirname"
            style="@style/ListItemText"
            android:textColor="?android:attr/textColorPrimary"
            android:layout_height="match_parent"
            android:layout_width="0dp"
            android:layout_weight="2"
            android:ellipsize="end"
            android:maxLines="1"/>

        <TextView
            android:id="@+id/file_item_size"
            style="@style/ListItemText"
            android:layout_width="50dp"
            android:layout_height="match_parent"
            android:layout_marginEnd="4dp"
            android:textAlignment="textEnd"
            android:textColor="?android:attr/textColorPrimary"
            tools:text="0" />

        <TextView
            android:id="@+id/file_item_size_unit"
            style="@style/ListItemText"
            android:layout_width="30dp"
            android:layout_height="match_parent"
            android:textColor="?android:attr/textColorPrimary"
            tools:text="B" />

        <ImageView
            android:id="@+id/file_actions_button"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="center_vertical"
            android:contentDescription="@string/file_actions_icon_desc"
            android:tint="?android:attr/textColorPrimary"
            app:srcCompat="@drawable/ic_more_vert_black_24dp" />
        <!--TextView
            android:id="@+id/file_item_date"
            tools:text="date/time"
            style="@style/ListItemText"
            android:layout_height="match_parent"
            android:layout_width="0dp"
            android:layout_weight="2"
            android:ellipsize="end"
            android:gravity="end"
            android:maxLines="1"/-->
    </LinearLayout>
</LinearLayout>