aboutsummaryrefslogtreecommitdiffstats
path: root/OpenKeychain/src/main/res/layout/key_list_fragment.xml
blob: 32b77baac387a6a05b4366388042c89e532303ec (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"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical">

    <!--rebuild functionality of ListFragment -->

    <se.emilsjolander.stickylistheaders.StickyListHeadersListView
        android:id="@+id/key_list_list"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:clipToPadding="false"
        android:drawSelectorOnTop="true"
        android:fastScrollEnabled="true"
        android:paddingBottom="16dp"
        android:paddingLeft="16dp"
        android:paddingRight="32dp"
        android:scrollbarStyle="outsideOverlay" />

    <LinearLayout
        android:id="@+id/key_list_empty"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:gravity="center"
        android:orientation="vertical"
        android:visibility="visible">

        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:gravity="center"
            android:text="@string/key_list_empty_text1"
            android:textAppearance="?android:attr/textAppearanceLarge" />

        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:gravity="center"
            android:text=""
            android:textAppearance="?android:attr/textAppearanceLarge" />

        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_margin="4dp"
            android:gravity="center"
            android:text="@string/key_list_empty_text2"
            android:textAppearance="?android:attr/textAppearanceSmall" />

        <Button
            android:id="@+id/key_list_empty_button_create"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_margin="4dp"
            android:textSize="14sp"
            android:text="@string/key_list_empty_button_create"
            android:drawableLeft="@drawable/ic_action_new_account"
            android:background="@drawable/button_edgy"/>

        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_margin="4dp"
            android:gravity="center"
            android:text="@string/key_list_empty_text3"
            android:textAppearance="?android:attr/textAppearanceSmall" />

        <Button
            android:id="@+id/key_list_empty_button_import"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_margin="4dp"
            android:textSize="14sp"
            android:text="@string/key_list_empty_button_import"
            android:drawableLeft="@drawable/ic_action_download"
            android:background="@drawable/button_edgy" />
    </LinearLayout>

</FrameLayout>