1<?xml version="1.0" encoding="utf-8"?>
2<layout xmlns:android="http://schemas.android.com/apk/res/android"
3 xmlns:app="http://schemas.android.com/apk/res-auto"
4 xmlns:tools="http://schemas.android.com/tools">
5
6 <LinearLayout
7 android:layout_width="match_parent"
8 android:layout_height="match_parent"
9 android:background="?attr/color_background_secondary"
10 android:orientation="vertical">
11
12 <include
13 android:id="@+id/toolbar"
14 layout="@layout/toolbar" />
15
16 <ScrollView
17 android:layout_width="fill_parent"
18 android:layout_height="fill_parent">
19
20 <LinearLayout
21 android:id="@+id/details_main_layout"
22 android:layout_width="fill_parent"
23 android:layout_height="wrap_content"
24 android:orientation="vertical">
25
26 <androidx.cardview.widget.CardView
27 android:layout_width="match_parent"
28 android:layout_height="wrap_content"
29 android:layout_marginBottom="@dimen/activity_vertical_margin"
30 android:layout_marginLeft="@dimen/activity_horizontal_margin"
31 android:layout_marginRight="@dimen/activity_horizontal_margin"
32 android:layout_marginTop="@dimen/activity_vertical_margin">
33
34 <RelativeLayout
35 android:layout_width="match_parent"
36 android:layout_height="wrap_content"
37 android:padding="@dimen/card_padding_regular">
38
39 <com.makeramen.roundedimageview.RoundedImageView
40 android:id="@+id/details_contact_badge"
41 android:layout_width="@dimen/avatar_on_details_screen_size"
42 android:layout_height="@dimen/avatar_on_details_screen_size"
43 android:layout_alignParentTop="true"
44 app:riv_corner_radius="8dp"
45 android:scaleType="centerCrop" />
46
47 <LinearLayout
48 android:id="@+id/details_jidbox"
49 android:layout_width="wrap_content"
50 android:layout_height="wrap_content"
51 android:layout_marginLeft="16dp"
52 android:layout_toRightOf="@+id/details_contact_badge"
53 android:orientation="vertical">
54
55 <TextView
56 android:id="@+id/details_contactjid"
57 android:layout_width="wrap_content"
58 android:layout_height="wrap_content"
59 android:text="@string/account_settings_example_jabber_id"
60 android:textAppearance="@style/TextAppearance.Conversations.Title" />
61
62 <com.wefika.flowlayout.FlowLayout
63 android:id="@+id/tags"
64 android:layout_width="wrap_content"
65 android:layout_height="wrap_content"
66 android:layout_marginBottom="4dp"
67 android:layout_marginLeft="-2dp"
68 android:layout_marginTop="4dp"
69 android:orientation="horizontal"></com.wefika.flowlayout.FlowLayout>
70
71 <TextView
72 android:id="@+id/details_lastseen"
73 android:layout_width="wrap_content"
74 android:layout_height="wrap_content"
75 android:layout_marginTop="4dp"
76 android:textAppearance="@style/TextAppearance.Conversations.Subhead" />
77
78 <TextView
79 android:id="@+id/status_message"
80 android:layout_width="wrap_content"
81 android:layout_height="wrap_content"
82 android:layout_marginTop="8dp"
83 android:textAppearance="@style/TextAppearance.Conversations.Body1" />
84
85 <Button
86 android:id="@+id/add_contact_button"
87 android:layout_width="wrap_content"
88 android:layout_height="wrap_content"
89 android:layout_marginTop="8dp"
90 android:text="@string/add_contact" />
91
92 <CheckBox
93 android:id="@+id/details_send_presence"
94 style="@style/Widget.Conversations.CheckBox"
95 android:layout_width="wrap_content"
96 android:layout_height="wrap_content"
97 android:layout_marginTop="8dp"
98 android:text="@string/send_presence_updates"
99 android:textAppearance="@style/TextAppearance.Conversations.Body1" />
100
101 <CheckBox
102 android:id="@+id/details_receive_presence"
103 style="@style/Widget.Conversations.CheckBox"
104 android:layout_width="wrap_content"
105 android:layout_height="wrap_content"
106 android:text="@string/receive_presence_updates"
107 android:textAppearance="@style/TextAppearance.Conversations.Body1" />
108 </LinearLayout>
109
110 <TextView
111 android:id="@+id/details_account"
112 android:layout_width="wrap_content"
113 android:layout_height="wrap_content"
114 android:layout_alignParentRight="true"
115 android:layout_below="@+id/details_jidbox"
116 android:layout_marginTop="32dp"
117 android:text="@string/using_account"
118 android:textAppearance="@style/TextAppearance.Conversations.Caption" />
119 </RelativeLayout>
120 </androidx.cardview.widget.CardView>
121
122 <androidx.cardview.widget.CardView
123 android:id="@+id/media_wrapper"
124 android:layout_width="fill_parent"
125 android:layout_height="wrap_content"
126 android:layout_marginBottom="@dimen/activity_vertical_margin"
127 android:layout_marginLeft="@dimen/activity_horizontal_margin"
128 android:layout_marginRight="@dimen/activity_horizontal_margin"
129 android:layout_marginTop="@dimen/activity_vertical_margin">
130
131 <LinearLayout
132 android:layout_width="match_parent"
133 android:layout_height="wrap_content"
134 android:orientation="vertical">
135
136 <androidx.recyclerview.widget.RecyclerView
137 android:id="@+id/media"
138 android:layout_width="match_parent"
139 android:layout_height="wrap_content"
140 android:orientation="horizontal"
141 android:paddingEnd="@dimen/card_padding_regular"
142 android:paddingStart="@dimen/card_padding_regular"
143 android:paddingTop="@dimen/card_padding_regular"
144 android:paddingBottom="@dimen/card_padding_list"
145 android:layout_marginStart="-2dp"
146 android:layout_marginEnd="-2dp"/>
147
148 <LinearLayout
149 android:layout_width="wrap_content"
150 android:layout_height="match_parent"
151 android:orientation="horizontal"
152 android:layout_gravity="end">
153
154 <Button
155 android:id="@+id/show_media"
156 style="@style/Widget.Conversations.Button.Borderless"
157 android:layout_width="wrap_content"
158 android:layout_height="wrap_content"
159 android:minWidth="0dp"
160 android:paddingLeft="16dp"
161 android:paddingRight="16dp"
162 android:text="@string/view_media"
163 android:textColor="?attr/colorAccent" />
164 </LinearLayout>
165 </LinearLayout>
166 </androidx.cardview.widget.CardView>
167
168 <androidx.cardview.widget.CardView
169 android:id="@+id/keys_wrapper"
170 android:layout_width="fill_parent"
171 android:layout_height="wrap_content"
172 android:layout_marginBottom="@dimen/activity_vertical_margin"
173 android:layout_marginLeft="@dimen/activity_horizontal_margin"
174 android:layout_marginRight="@dimen/activity_horizontal_margin"
175 android:layout_marginTop="@dimen/activity_vertical_margin">
176
177 <LinearLayout
178 android:layout_width="match_parent"
179 android:layout_height="wrap_content"
180 android:orientation="vertical">
181
182 <LinearLayout
183 android:id="@+id/details_contact_keys"
184 android:layout_width="match_parent"
185 android:layout_height="wrap_content"
186 android:orientation="vertical"
187 android:padding="@dimen/card_padding_list"/>
188
189 <LinearLayout
190 android:id="@+id/unverified_warning"
191 android:layout_width="match_parent"
192 android:layout_height="wrap_content"
193 android:paddingHorizontal="@dimen/card_padding_list">
194 <TextView
195 android:layout_marginHorizontal="@dimen/list_padding"
196 android:layout_width="wrap_content"
197 android:layout_height="wrap_content"
198 android:textAppearance="@style/TextAppearance.Conversations.Body1.Secondary"
199 android:text="@string/contact_uses_unverified_keys"/>
200 </LinearLayout>
201
202 <LinearLayout
203 android:layout_width="wrap_content"
204 android:layout_height="match_parent"
205 android:layout_marginTop="8dp"
206 android:orientation="horizontal">
207
208
209 <Button
210 android:id="@+id/scan_button"
211 style="@style/Widget.Conversations.Button.Borderless"
212 android:layout_width="wrap_content"
213 android:layout_height="wrap_content"
214 android:minWidth="0dp"
215 android:paddingLeft="16dp"
216 android:paddingRight="16dp"
217 android:text="@string/scan_qr_code"
218 android:textColor="?attr/colorAccent" />
219
220 <Button
221 android:id="@+id/show_inactive_devices"
222 style="@style/Widget.Conversations.Button.Borderless"
223 android:layout_width="wrap_content"
224 android:layout_height="wrap_content"
225 android:minWidth="0dp"
226 android:paddingLeft="16dp"
227 android:paddingRight="16dp"
228 android:text="@string/show_inactive_devices"
229 android:textColor="?attr/colorAccent" />
230 </LinearLayout>
231 </LinearLayout>
232 </androidx.cardview.widget.CardView>
233 </LinearLayout>
234 </ScrollView>
235 </LinearLayout>
236</layout>