1<?xml version="1.0" encoding="utf-8"?>
2<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
3 xmlns:tools="http://schemas.android.com/tools"
4 android:layout_width="match_parent"
5 android:layout_height="match_parent"
6 android:background="@color/grey200" >
7
8 <ScrollView
9 android:layout_width="fill_parent"
10 android:layout_height="wrap_content"
11 android:layout_above="@+id/button_bar"
12 android:layout_alignParentTop="true" >
13
14 <LinearLayout
15 android:layout_width="match_parent"
16 android:layout_height="wrap_content"
17 android:orientation="vertical" >
18
19 <RelativeLayout
20 android:id="@+id/editor"
21 android:layout_width="fill_parent"
22 android:layout_height="wrap_content"
23 android:layout_marginLeft="@dimen/activity_horizontal_margin"
24 android:layout_marginRight="@dimen/activity_horizontal_margin"
25 android:layout_marginTop="@dimen/activity_vertical_margin"
26 android:layout_marginBottom="@dimen/activity_vertical_margin"
27 android:background="@drawable/infocard_border"
28 android:orientation="vertical"
29 android:padding="@dimen/infocard_padding">
30 <ImageView android:id="@+id/avater"
31 android:layout_width="72dp"
32 android:layout_height="72dp"
33 android:layout_alignParentTop="true"
34 android:layout_marginRight="16dp"
35 android:contentDescription="@string/account_image_description"/>
36 <LinearLayout
37 android:layout_width="fill_parent"
38 android:layout_height="wrap_content"
39 android:orientation="vertical"
40 android:layout_toRightOf="@+id/avater">
41 <TextView
42 android:layout_width="wrap_content"
43 android:layout_height="wrap_content"
44 android:text="@string/account_settings_jabber_id"
45 android:textColor="@color/black87"
46 android:textSize="?attr/TextSizeBody" />
47
48 <AutoCompleteTextView
49 android:id="@+id/account_jid"
50 android:layout_width="match_parent"
51 android:layout_height="wrap_content"
52 android:hint="@string/account_settings_example_jabber_id"
53 android:inputType="textEmailAddress"
54 android:textColor="@color/black87"
55 android:textColorHint="@color/black54"
56 android:textSize="?attr/TextSizeBody" />
57
58 <TextView
59 android:layout_width="wrap_content"
60 android:layout_height="wrap_content"
61 android:layout_marginTop="8dp"
62 android:text="@string/account_settings_password"
63 android:textColor="@color/black87"
64 android:textSize="?attr/TextSizeBody" />
65
66 <EditText
67 android:id="@+id/account_password"
68 android:layout_width="match_parent"
69 android:layout_height="wrap_content"
70 android:hint="@string/password"
71 android:inputType="textPassword"
72 android:textColor="@color/black87"
73 android:textColorHint="@color/black54"
74 android:textSize="?attr/TextSizeBody" />
75
76 <CheckBox
77 android:id="@+id/account_register_new"
78 android:layout_width="wrap_content"
79 android:layout_height="wrap_content"
80 android:layout_marginTop="8dp"
81 android:text="@string/register_account"
82 android:textColor="@color/black87"
83 android:textSize="?attr/TextSizeBody" />
84
85 <TextView
86 android:id="@+id/account_confirm_password_desc"
87 android:layout_width="wrap_content"
88 android:layout_height="wrap_content"
89 android:text="@string/account_settings_confirm_password"
90 android:textColor="@color/black87"
91 android:textSize="?attr/TextSizeBody"
92 android:visibility="gone" />
93
94 <EditText
95 android:id="@+id/account_password_confirm"
96 android:layout_width="match_parent"
97 android:layout_height="wrap_content"
98 android:layout_marginTop="8dp"
99 android:hint="@string/confirm_password"
100 android:inputType="textPassword"
101 android:visibility="gone"
102 android:textColor="@color/black87"
103 android:textColorHint="@color/black54"
104 android:textSize="?attr/TextSizeBody" />
105 </LinearLayout>
106 </RelativeLayout>
107
108 <LinearLayout
109 android:id="@+id/stats"
110 android:layout_width="fill_parent"
111 android:layout_height="fill_parent"
112 android:layout_marginLeft="@dimen/activity_horizontal_margin"
113 android:layout_marginRight="@dimen/activity_horizontal_margin"
114 android:layout_marginTop="@dimen/activity_vertical_margin"
115 android:layout_marginBottom="@dimen/activity_vertical_margin"
116 android:background="@drawable/infocard_border"
117 android:orientation="vertical"
118 android:padding="@dimen/infocard_padding"
119 android:visibility="gone" >
120
121 <TableLayout
122 android:layout_width="match_parent"
123 android:layout_height="wrap_content"
124 android:stretchColumns="1" >
125
126 <TableRow
127 android:layout_width="fill_parent"
128 android:layout_height="wrap_content"
129 tools:ignore="UselessParent">
130
131 <TextView
132 android:layout_width="wrap_content"
133 android:layout_height="wrap_content"
134 android:text="@string/server_info_session_established"
135 android:textColor="@color/black87"
136 android:textSize="?attr/TextSizeBody" />
137
138 <TextView
139 android:id="@+id/session_est"
140 android:layout_width="wrap_content"
141 android:layout_height="wrap_content"
142 android:layout_gravity="right"
143 android:textColor="@color/black87"
144 android:textSize="?attr/TextSizeBody"
145 tools:ignore="RtlHardcoded"/>
146 </TableRow>
147
148 </TableLayout>
149 <TableLayout
150 android:id="@+id/server_info_more"
151 android:layout_width="match_parent"
152 android:layout_height="wrap_content"
153 android:stretchColumns="1"
154 android:visibility="gone" >
155
156 <TableRow
157 android:layout_width="fill_parent"
158 android:layout_height="wrap_content" >
159
160 <TextView
161 android:layout_width="wrap_content"
162 android:layout_height="wrap_content"
163 android:text="@string/server_info_pep"
164 android:textColor="@color/black87"
165 android:textSize="?attr/TextSizeBody" />
166
167 <TextView
168 android:id="@+id/server_info_pep"
169 android:layout_width="wrap_content"
170 android:layout_height="wrap_content"
171 android:layout_gravity="right"
172 android:textColor="@color/black87"
173 android:textSize="?attr/TextSizeBody"
174 tools:ignore="RtlHardcoded"/>
175 </TableRow>
176
177 <TableRow
178 android:layout_width="fill_parent"
179 android:layout_height="wrap_content" >
180
181 <TextView
182 android:layout_width="wrap_content"
183 android:layout_height="wrap_content"
184 android:text="@string/server_info_blocking"
185 android:textColor="@color/black87"
186 android:textSize="?attr/TextSizeBody" />
187
188 <TextView
189 android:id="@+id/server_info_blocking"
190 android:layout_width="wrap_content"
191 android:layout_height="wrap_content"
192 android:layout_gravity="right"
193 android:textColor="@color/black87"
194 android:textSize="?attr/TextSizeBody"
195 tools:ignore="RtlHardcoded"/>
196 </TableRow>
197
198 <TableRow
199 android:layout_width="fill_parent"
200 android:layout_height="wrap_content" >
201
202 <TextView
203 android:layout_width="wrap_content"
204 android:layout_height="wrap_content"
205 android:text="@string/server_info_stream_management"
206 android:textColor="@color/black87"
207 android:textSize="?attr/TextSizeBody" />
208
209 <TextView
210 android:id="@+id/server_info_sm"
211 android:layout_width="wrap_content"
212 android:layout_height="wrap_content"
213 android:layout_gravity="right"
214 android:textColor="@color/black87"
215 android:textSize="?attr/TextSizeBody"
216 tools:ignore="RtlHardcoded"/>
217 </TableRow>
218
219 <TableRow
220 android:layout_width="fill_parent"
221 android:layout_height="wrap_content" >
222
223 <TextView
224 android:layout_width="wrap_content"
225 android:layout_height="wrap_content"
226 android:text="@string/server_info_roster_version"
227 android:textColor="@color/black87"
228 android:textSize="?attr/TextSizeBody" />
229
230 <TextView
231 android:id="@+id/server_info_roster_version"
232 android:layout_width="wrap_content"
233 android:layout_height="wrap_content"
234 android:layout_gravity="right"
235 android:textColor="@color/black87"
236 android:textSize="?attr/TextSizeBody"
237 tools:ignore="RtlHardcoded"/>
238 </TableRow>
239
240 <TableRow
241 android:layout_width="fill_parent"
242 android:layout_height="wrap_content" >
243
244 <TextView
245 android:layout_width="wrap_content"
246 android:layout_height="wrap_content"
247 android:text="@string/server_info_carbon_messages"
248 android:textColor="@color/black87"
249 android:textSize="?attr/TextSizeBody" />
250
251 <TextView
252 android:id="@+id/server_info_carbons"
253 android:layout_width="wrap_content"
254 android:layout_height="wrap_content"
255 android:layout_gravity="right"
256 android:textColor="@color/black87"
257 android:textSize="?attr/TextSizeBody"
258 tools:ignore="RtlHardcoded"/>
259 </TableRow>
260
261 <TableRow
262 android:layout_width="fill_parent"
263 android:layout_height="wrap_content" >
264
265 <TextView
266 android:layout_width="wrap_content"
267 android:layout_height="wrap_content"
268 android:text="@string/server_info_mam"
269 android:textColor="@color/black87"
270 android:textSize="?attr/TextSizeBody" />
271
272 <TextView
273 android:id="@+id/server_info_mam"
274 android:layout_width="wrap_content"
275 android:layout_height="wrap_content"
276 android:layout_gravity="right"
277 android:textColor="@color/black87"
278 android:textSize="?attr/TextSizeBody"
279 tools:ignore="RtlHardcoded"/>
280 </TableRow>
281
282 <TableRow
283 android:layout_width="fill_parent"
284 android:layout_height="wrap_content" >
285
286 <TextView
287 android:layout_width="wrap_content"
288 android:layout_height="wrap_content"
289 android:text="@string/server_info_csi"
290 android:textColor="@color/black87"
291 android:textSize="?attr/TextSizeBody" />
292
293 <TextView
294 android:id="@+id/server_info_csi"
295 android:layout_width="wrap_content"
296 android:layout_height="wrap_content"
297 android:layout_gravity="right"
298 android:textColor="@color/black87"
299 android:textSize="?attr/TextSizeBody"
300 tools:ignore="RtlHardcoded"/>
301 </TableRow>
302 </TableLayout>
303
304 <RelativeLayout
305 android:layout_width="wrap_content"
306 android:layout_height="match_parent"
307 android:id="@+id/otr_fingerprint_box"
308 android:layout_marginTop="32dp">
309
310 <LinearLayout
311 android:layout_width="wrap_content"
312 android:layout_height="wrap_content"
313 android:layout_alignParentLeft="true"
314 android:layout_toLeftOf="@+id/action_copy_to_clipboard"
315 android:orientation="vertical">
316
317 <TextView
318 android:id="@+id/otr_fingerprint"
319 android:layout_width="wrap_content"
320 android:layout_height="wrap_content"
321 android:textColor="@color/black87"
322 android:textSize="?attr/TextSizeBody"
323 android:typeface="monospace" />
324
325 <TextView
326 android:layout_width="wrap_content"
327 android:layout_height="wrap_content"
328 android:textColor="@color/black54"
329 android:textSize="?attr/TextSizeInfo"
330 android:text="@string/otr_fingerprint"/>
331 </LinearLayout>
332
333 <ImageButton
334 android:id="@+id/action_copy_to_clipboard"
335 android:layout_width="wrap_content"
336 android:layout_height="wrap_content"
337 android:layout_alignParentRight="true"
338 android:layout_centerVertical="true"
339 android:background="?android:selectableItemBackground"
340 android:padding="@dimen/image_button_padding"
341 android:src="?attr/icon_copy"
342 android:visibility="visible"
343 android:contentDescription="@string/copy_otr_clipboard_description"/>
344 </RelativeLayout>
345 <RelativeLayout
346 android:layout_width="wrap_content"
347 android:layout_height="match_parent"
348 android:id="@+id/axolotl_fingerprint_box"
349 android:layout_marginTop="32dp">
350
351 <LinearLayout
352 android:layout_width="wrap_content"
353 android:layout_height="wrap_content"
354 android:layout_alignParentLeft="true"
355 android:layout_toLeftOf="@+id/axolotl_actions"
356 android:orientation="vertical">
357
358 <TextView
359 android:id="@+id/axolotl_fingerprint"
360 android:layout_width="wrap_content"
361 android:layout_height="wrap_content"
362 android:textColor="@color/black87"
363 android:textSize="?attr/TextSizeBody"
364 android:typeface="monospace" />
365
366 <TextView
367 android:layout_width="wrap_content"
368 android:layout_height="wrap_content"
369 android:textColor="@color/black54"
370 android:textSize="?attr/TextSizeInfo"
371 android:text="@string/axolotl_fingerprint"/>
372 </LinearLayout>
373
374 <LinearLayout
375 android:layout_width="wrap_content"
376 android:layout_height="wrap_content"
377 android:id="@+id/axolotl_actions"
378 android:layout_centerVertical="true"
379 android:layout_alignParentRight="true"
380 android:orientation="vertical">
381
382 <ImageButton
383 android:id="@+id/action_copy_axolotl_to_clipboard"
384 android:layout_width="wrap_content"
385 android:layout_height="wrap_content"
386 android:background="?android:selectableItemBackground"
387 android:padding="@dimen/image_button_padding"
388 android:src="?attr/icon_copy"
389 android:visibility="visible"
390 android:contentDescription="@string/copy_axolotl_clipboard_description"/>
391 <ImageButton
392 android:id="@+id/action_regenerate_axolotl_key"
393 android:layout_width="wrap_content"
394 android:layout_height="wrap_content"
395 android:background="?android:selectableItemBackground"
396 android:padding="@dimen/image_button_padding"
397 android:src="?attr/icon_refresh"
398 android:visibility="visible"
399 android:contentDescription="@string/regenerate_axolotl_key"/>
400
401 </LinearLayout>
402 </RelativeLayout>
403 <RelativeLayout
404 android:layout_width="wrap_content"
405 android:layout_height="wrap_content"
406 android:id="@+id/axolotl_devices_box"
407 android:layout_marginTop="32dp">
408
409 <LinearLayout
410 android:layout_width="wrap_content"
411 android:layout_height="wrap_content"
412 android:layout_alignParentLeft="true"
413 android:layout_toLeftOf="@+id/action_wipe_axolotl_pep"
414 android:orientation="vertical">
415
416 <TextView
417 android:id="@+id/axolotl_devicelist"
418 android:layout_width="wrap_content"
419 android:layout_height="wrap_content"
420 android:textColor="@color/black87"
421 android:textSize="?attr/TextSizeBody"
422 android:typeface="monospace" />
423
424 <TextView
425 android:layout_width="wrap_content"
426 android:layout_height="wrap_content"
427 android:textColor="@color/black54"
428 android:textSize="?attr/TextSizeInfo"
429 android:text="@string/axolotl_devicelist"/>
430 </LinearLayout>
431
432 <ImageButton
433 android:id="@+id/action_wipe_axolotl_pep"
434 android:layout_width="wrap_content"
435 android:layout_height="wrap_content"
436 android:layout_centerVertical="true"
437 android:layout_alignParentRight="true"
438 android:background="?android:selectableItemBackground"
439 android:padding="@dimen/image_button_padding"
440 android:src="?attr/icon_remove"
441 android:visibility="visible"
442 android:contentDescription="@string/wipe_axolotl_pep"/>
443
444
445 </RelativeLayout>
446 </LinearLayout>
447 </LinearLayout>
448 </ScrollView>
449
450 <LinearLayout
451 android:id="@+id/button_bar"
452 android:layout_width="wrap_content"
453 android:layout_height="wrap_content"
454 android:layout_alignParentBottom="true"
455 android:layout_alignParentStart="true"
456 android:layout_alignParentEnd="true"
457 android:layout_alignParentLeft="true"
458 android:layout_alignParentRight="true" >
459
460 <Button
461 android:id="@+id/cancel_button"
462 style="?android:attr/borderlessButtonStyle"
463 android:layout_width="0dp"
464 android:layout_height="wrap_content"
465 android:layout_weight="1"
466 android:text="@string/cancel"
467 android:textColor="@color/black87" />
468
469 <View
470 android:layout_width="1dp"
471 android:layout_height="fill_parent"
472 android:layout_marginBottom="7dp"
473 android:layout_marginTop="7dp"
474 android:background="@color/black12" />
475
476 <Button
477 android:id="@+id/save_button"
478 style="?android:attr/borderlessButtonStyle"
479 android:layout_width="0dp"
480 android:layout_height="wrap_content"
481 android:layout_weight="1"
482 android:enabled="false"
483 android:text="@string/save"
484 android:textColor="@color/black54" />
485 </LinearLayout>
486
487</RelativeLayout>