aboutsummaryrefslogtreecommitdiffstats
path: root/OpenKeychain/src/main/res/layout/decrypt_list_file_item.xml
blob: f13a43fd6e3589bf50246c99de9f2c3feebf7bdf (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
<?xml version="1.0" encoding="utf-8"?>
<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="wrap_content"
    android:id="@+id/file"
    android:clickable="true"
    android:background="?android:selectableItemBackground"
    android:minHeight="?listPreferredItemHeight"
    >

    <ImageView
        android:id="@+id/thumbnail"
        android:layout_gravity="center_vertical"
        android:layout_width="36dp"
        android:layout_height="36dp"
        android:scaleType="center"
        android:padding="6dp"
        android:src="@drawable/ic_doc_generic_am" />

    <LinearLayout
        android:orientation="vertical"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_gravity="center_vertical"
        android:paddingLeft="8dp"
        android:paddingRight="8dp"
        android:layout_weight="1">

        <TextView
            android:id="@+id/filename"
            android:maxLines="1"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:textColor="?android:attr/textColorSecondary"
            android:textAppearance="?android:attr/textAppearanceMedium"
            android:ellipsize="end"
            android:text=""
            tools:text="filename.jpg" />

        <TextView
            android:id="@+id/filesize"
            android:maxLines="1"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:textColor="?android:attr/textColorTertiary"
            android:textAppearance="?android:attr/textAppearanceSmall"
            android:textSize="12sp"
            android:ellipsize="end"
            android:text=""
            tools:text="14kb" />

    </LinearLayout>

</LinearLayout>