aboutsummaryrefslogtreecommitdiffstats
path: root/OpenKeychain/src/main/res/layout/file_list_entry.xml
blob: f6fde2447ec0672937d5d4324ff959032b5863c8 (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
<?xml version="1.0" encoding="utf-8"?>

<RelativeLayout
        xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_width="match_parent"
        android:layout_height="48dip"
        android:background="@drawable/attachment_bg_holo">

    <ImageView
            android:id="@+id/thumbnail"
            android:layout_alignParentLeft="true"
            android:layout_centerVertical="true"
            android:scaleType="center"
            android:layout_width="48dip"
            android:layout_height="48dip"/>

    <LinearLayout
            android:orientation="vertical"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_toRightOf="@+id/thumbnail"
            android:layout_centerVertical="true">

        <TextView
                android:id="@+id/filename"
                android:layout_marginLeft="8dip"
                android:layout_marginRight="32dip"
                android:maxLines="1"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:textColor="?android:attr/textColorSecondary"
                android:textAppearance="?android:attr/textAppearanceSmall"
                android:ellipsize="end"/>

        <TextView
                android:id="@+id/filesize"
                android:layout_marginLeft="8dip"
                android:layout_marginRight="32dip"
                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"/>

    </LinearLayout>

    <ImageButton
            android:id="@+id/action_remove_file_from_list"
            android:layout_width="48dip"
            android:layout_height="48dip"
            android:layout_alignParentRight="true"
            android:paddingRight="16dip"
            android:paddingLeft="16dip"
            android:src="@drawable/ic_action_cancel"
            android:clickable="true"
            android:layout_centerVertical="true"
            style="@style/SelectableItem"/>
</RelativeLayout>