aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/res/layout/contact_key.xml
blob: c16d5e0896c5cd7a5b3ab97ba278267280a132cb (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
86
87
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="wrap_content"
    android:layout_height="match_parent"
    android:longClickable="true">

    <RelativeLayout
        android:id="@+id/key_data"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentLeft="true"
        android:paddingBottom="8dp"
        android:paddingLeft="8dp"
        android:paddingTop="8dp">

        <TextView
            android:id="@+id/key"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentLeft="true"
            android:layout_toLeftOf="@+id/action_container"
            android:fontFamily="monospace"
            android:textColor="?attr/color_text_primary"
            android:textSize="?attr/TextSizeBody"
            android:typeface="monospace"
            android:longClickable="true"/>

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

        <TextView
            android:id="@+id/key_trust"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentRight="true"
            android:layout_below="@+id/key"
            android:textColor="?attr/color_text_secondary"
            android:textSize="?attr/TextSizeInfo"
            android:visibility="gone"
            android:longClickable="true"/>
        <LinearLayout
            android:id="@+id/action_container"
            android:layout_width="96dp"
            android:layout_marginRight="-32dp"
            android:layout_height="wrap_content"
            android:orientation="vertical"
            android:layout_alignParentRight="true"
            android:layout_centerVertical="true">
            <ImageButton
                android:layout_gravity="center_horizontal"
                android:id="@+id/button_remove"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:alpha="?attr/icon_alpha"
                android:background="?android:selectableItemBackground"
                android:padding="@dimen/image_button_padding"
                android:src="?attr/icon_remove"
                android:layout_marginRight="16dp"
                android:visibility="gone" />

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

            <eu.siacs.conversations.ui.widget.Switch
                android:id="@+id/tgl_trust"
                style="@style/MD"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:visibility="gone" />
        </LinearLayout>

    </RelativeLayout>
</RelativeLayout>