summaryrefslogtreecommitdiff
path: root/android/source/res/layout/file_list_item.xml
blob: 7d703befb233758a1edfd8dbac8e0c76b37a50a2 (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
<?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:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="48dp"
    android:orientation="horizontal" >
    <ImageView
        android:id="@+id/file_list_item_icon"
        tools:src="@drawable/ic_folder_black_24dp"
        tools:tint="@color/text_color_secondary"
        android:layout_height="match_parent"
        android:layout_width="32dp"
        android:layout_margin="8dp"
        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_list_item_name"
            tools:text="file or dirname"
            style="@style/ListItemText"
            android:layout_height="match_parent"
            android:layout_width="0dp"
            android:layout_weight="2" />
        <TextView
            android:id="@+id/file_list_item_size"
            tools:text="filesize"
            style="@style/ListItemText"
            android:layout_height="match_parent"
            android:layout_width="0dp"
            android:layout_weight="1" />
        <TextView
            android:id="@+id/file_list_item_date"
            tools:text="date/time"
            style="@style/ListItemText"
            android:layout_height="match_parent"
            android:layout_width="0dp"
            android:layout_weight="2" />
    </LinearLayout>
</LinearLayout>