aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/res/layout/contact_key.xml
blob: 0aa695ea83b52eef9e87ac5eb62b2d7c30f33e5e (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
81
82
83
84
85
<?xml version="1.0" encoding="utf-8"?>
<layout xmlns:android="http://schemas.android.com/apk/res/android">

    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_alignParentLeft="true"
        android:padding="@dimen/list_padding">

        <LinearLayout
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentLeft="true"
            android:layout_centerVertical="true"
            android:layout_toLeftOf="@+id/action_container"
            android:orientation="vertical">

            <TextView
                android:id="@+id/key"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"

                android:clickable="true"
                android:fontFamily="monospace"
                android:longClickable="true"
                android:textColor="?attr/color_text_primary"
                android:textSize="?attr/TextSizeBody"
                android:typeface="monospace" />

            <TextView
                android:id="@+id/key_type"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:clickable="true"
                android:longClickable="true"
                android:maxLines="1"
                android:textColor="?attr/color_text_secondary"
                android:textSize="?attr/TextSizeInfo" />
        </LinearLayout>

        <LinearLayout
            android:id="@+id/action_container"
            android:layout_width="@dimen/key_action_width"
            android:layout_height="48dp"
            android:layout_alignParentRight="true"
            android:layout_centerVertical="true"
            android:gravity="center"
            android:orientation="vertical">

            <ImageButton
                android:id="@+id/button_remove"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:alpha="?attr/icon_alpha"
                android:background="?attr/selectableItemBackgroundBorderless"
                android:padding="@dimen/image_button_padding"
                android:src="?attr/icon_remove"
                android:visibility="gone" />

            <ImageButton
                android:id="@+id/button_enable_device"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:alpha="?attr/icon_alpha"
                android:background="?attr/selectableItemBackgroundBorderless"
                android:padding="@dimen/image_button_padding"
                android:src="?attr/icon_enable_undecided_device"
                android:visibility="gone" />

            <ImageView
                android:id="@+id/verified_fingerprint"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:src="@drawable/ic_verified_fingerprint"
                android:visibility="gone" />

            <android.support.v7.widget.SwitchCompat
                android:id="@+id/tgl_trust"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:visibility="gone" />
        </LinearLayout>

    </RelativeLayout>
</layout>