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 <RelativeLayout
7 android:layout_width="match_parent"
8 android:layout_height="match_parent">
9
10 <com.google.android.material.appbar.AppBarLayout
11 android:id="@+id/app_bar_layout"
12 android:layout_width="match_parent"
13 android:layout_height="wrap_content">
14
15 <com.google.android.material.appbar.MaterialToolbar
16 android:id="@+id/toolbar"
17 android:layout_width="match_parent"
18 android:layout_height="wrap_content"
19 android:minHeight="?attr/actionBarSize" />
20
21 </com.google.android.material.appbar.AppBarLayout>
22
23 <ScrollView
24 android:layout_width="fill_parent"
25 android:layout_height="wrap_content"
26 android:layout_above="@+id/button_bar"
27 android:layout_below="@id/app_bar_layout">
28
29 <LinearLayout
30 android:id="@+id/account_main_layout"
31 android:layout_width="match_parent"
32 android:layout_height="wrap_content"
33 android:orientation="vertical">
34
35
36 <com.google.android.material.card.MaterialCardView
37 android:id="@+id/editor"
38 android:layout_width="fill_parent"
39 android:layout_height="wrap_content"
40 android:layout_marginLeft="@dimen/activity_horizontal_margin"
41 android:layout_marginTop="@dimen/activity_vertical_margin"
42 android:layout_marginRight="@dimen/activity_horizontal_margin"
43 android:layout_marginBottom="@dimen/activity_vertical_margin">
44
45 <RelativeLayout
46 android:layout_width="match_parent"
47 android:layout_height="wrap_content"
48 android:padding="@dimen/card_padding_regular">
49
50 <com.makeramen.roundedimageview.RoundedImageView
51 android:id="@+id/avater"
52 android:layout_width="@dimen/avatar_on_details_screen_size"
53 android:layout_height="@dimen/avatar_on_details_screen_size"
54 android:layout_alignParentTop="true"
55 android:layout_marginEnd="@dimen/avatar_item_distance"
56 android:contentDescription="@string/account_image_description"
57 app:riv_corner_radius="8dp" />
58
59 <LinearLayout
60 android:layout_width="fill_parent"
61 android:layout_height="wrap_content"
62 android:layout_toEndOf="@+id/avater"
63 android:orientation="vertical">
64
65 <com.google.android.material.textfield.TextInputLayout
66 android:id="@+id/account_jid_layout"
67 style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
68 android:layout_width="match_parent"
69 android:layout_height="wrap_content"
70 android:hint="@string/account_settings_jabber_id">
71
72 <com.google.android.material.textfield.MaterialAutoCompleteTextView
73 android:id="@+id/account_jid"
74 android:layout_width="match_parent"
75 android:layout_height="wrap_content"
76 android:imeOptions="actionNext"
77 android:inputType="textEmailAddress"
78 android:padding="16dp" />
79 </com.google.android.material.textfield.TextInputLayout>
80
81
82 <com.google.android.material.textfield.TextInputLayout
83 android:id="@+id/account_password_layout"
84 android:layout_width="match_parent"
85 android:layout_height="wrap_content"
86 android:layout_marginTop="4sp"
87 android:hint="@string/password"
88 app:endIconMode="password_toggle">
89
90 <eu.siacs.conversations.ui.widget.TextInputEditText
91 android:id="@+id/account_password"
92 android:layout_width="match_parent"
93 android:layout_height="wrap_content"
94 android:inputType="textPassword" />
95 </com.google.android.material.textfield.TextInputLayout>
96
97 <LinearLayout
98 android:id="@+id/name_port"
99 android:layout_width="fill_parent"
100 android:layout_height="wrap_content"
101 android:layout_marginTop="8sp"
102 android:orientation="horizontal"
103 android:weightSum="1">
104
105
106 <com.google.android.material.textfield.TextInputLayout
107 android:id="@+id/hostname_layout"
108 android:layout_width="0dp"
109 android:layout_height="wrap_content"
110 android:layout_marginEnd="4sp"
111 android:layout_weight="0.7"
112 android:hint="@string/account_settings_hostname">
113
114 <EditText
115 android:id="@+id/hostname"
116 android:layout_width="fill_parent"
117 android:layout_height="wrap_content"
118 android:inputType="textWebEmailAddress" />
119 </com.google.android.material.textfield.TextInputLayout>
120
121
122 <com.google.android.material.textfield.TextInputLayout
123 android:id="@+id/port_layout"
124 android:layout_width="0dp"
125 android:layout_height="wrap_content"
126 android:layout_marginStart="4sp"
127 android:layout_weight="0.3"
128 android:hint="@string/account_settings_port">
129
130 <EditText
131 android:id="@+id/port"
132 android:layout_width="match_parent"
133 android:layout_height="match_parent"
134 android:inputType="number"
135 android:maxLength="5" />
136 </com.google.android.material.textfield.TextInputLayout>
137 </LinearLayout>
138
139 <CheckBox
140 android:id="@+id/account_register_new"
141 android:layout_width="wrap_content"
142 android:layout_height="wrap_content"
143 android:layout_marginTop="8dp"
144 android:text="@string/register_account" />
145 </LinearLayout>
146 </RelativeLayout>
147 </com.google.android.material.card.MaterialCardView>
148
149 <com.google.android.material.card.MaterialCardView
150 android:id="@+id/os_optimization"
151 android:layout_width="fill_parent"
152 android:layout_height="wrap_content"
153 android:layout_marginLeft="@dimen/activity_horizontal_margin"
154 android:layout_marginTop="@dimen/activity_vertical_margin"
155 android:layout_marginRight="@dimen/activity_horizontal_margin"
156 android:layout_marginBottom="@dimen/activity_vertical_margin"
157 android:visibility="gone"
158 tools:visibility="visible">
159
160 <LinearLayout
161 android:layout_width="match_parent"
162 android:layout_height="wrap_content"
163 android:orientation="vertical">
164
165 <LinearLayout
166 android:layout_width="match_parent"
167 android:layout_height="wrap_content"
168 android:orientation="vertical"
169 android:padding="@dimen/card_padding_regular">
170
171 <TextView
172 android:id="@+id/os_optimization_headline"
173 android:layout_width="wrap_content"
174 android:layout_height="wrap_content"
175 android:text="@string/battery_optimizations_enabled"
176 android:textAppearance="?textAppearanceTitleLarge" />
177
178 <TextView
179 android:id="@+id/os_optimization_body"
180 android:layout_width="wrap_content"
181 android:layout_height="wrap_content"
182 android:layout_marginTop="8dp"
183 android:text="@string/battery_optimizations_enabled_explained"
184 android:textAppearance="?textAppearanceBodyMedium" />
185 </LinearLayout>
186
187 <LinearLayout
188 android:layout_width="match_parent"
189 android:layout_height="wrap_content"
190 android:layout_gravity="end"
191 android:layout_marginHorizontal="16dp"
192 android:layout_marginBottom="16dp"
193 android:gravity="end">
194
195 <Button
196 android:id="@+id/os_optimization_disable"
197 style="@style/Widget.Material3.Button.TonalButton"
198 android:layout_width="wrap_content"
199 android:layout_height="wrap_content"
200 android:text="@string/disable" />
201 </LinearLayout>
202 </LinearLayout>
203 </com.google.android.material.card.MaterialCardView>
204
205
206 <com.google.android.material.card.MaterialCardView
207 android:id="@+id/stats"
208 android:layout_width="fill_parent"
209 android:layout_height="fill_parent"
210 android:layout_marginLeft="@dimen/activity_horizontal_margin"
211 android:layout_marginTop="@dimen/activity_vertical_margin"
212 android:layout_marginRight="@dimen/activity_horizontal_margin"
213 android:layout_marginBottom="@dimen/activity_vertical_margin"
214 android:visibility="gone"
215 tools:visibility="visible">
216
217 <LinearLayout
218 android:layout_width="match_parent"
219 android:layout_height="wrap_content"
220 android:orientation="vertical"
221 android:padding="@dimen/card_padding_regular">
222
223 <TableLayout
224 android:layout_width="match_parent"
225 android:layout_height="wrap_content"
226 android:shrinkColumns="0"
227 android:stretchColumns="1">
228
229 <TableRow
230 android:layout_width="fill_parent"
231 android:layout_height="wrap_content"
232 tools:ignore="UselessParent">
233
234 <TextView
235 android:layout_width="wrap_content"
236 android:layout_height="wrap_content"
237 android:ellipsize="end"
238 android:singleLine="true"
239 android:text="@string/server_info_session_established"
240 android:textAppearance="?textAppearanceBodyMedium" />
241
242 <TextView
243 android:id="@+id/session_est"
244 android:layout_width="wrap_content"
245 android:layout_height="wrap_content"
246 android:layout_gravity="end"
247 android:textAppearance="?textAppearanceBodyMedium" />
248 </TableRow>
249
250 </TableLayout>
251
252 <TableLayout
253 android:id="@+id/server_info_login_mechanism"
254 android:layout_width="match_parent"
255 android:layout_height="wrap_content"
256 android:shrinkColumns="0"
257 android:stretchColumns="1"
258 android:visibility="gone">
259
260 <TableRow
261 android:layout_width="fill_parent"
262 android:layout_height="wrap_content">
263
264 <TextView
265 android:layout_width="wrap_content"
266 android:layout_height="wrap_content"
267 android:ellipsize="end"
268 android:singleLine="true"
269 android:text="@string/server_info_login_mechanism"
270 android:textAppearance="?textAppearanceBodyMedium" />
271
272 <TextView
273 android:id="@+id/login_mechanism"
274 android:layout_width="wrap_content"
275 android:layout_height="wrap_content"
276 android:layout_gravity="end"
277 android:textAppearance="?textAppearanceBodyMedium" />
278 </TableRow>
279
280 </TableLayout>
281
282 <TableLayout
283 android:id="@+id/server_info_more"
284 android:layout_width="match_parent"
285 android:layout_height="wrap_content"
286 android:shrinkColumns="0"
287 android:stretchColumns="1"
288 android:visibility="gone">
289
290 <TableRow
291 android:layout_width="fill_parent"
292 android:layout_height="wrap_content">
293
294 <TextView
295 android:layout_width="wrap_content"
296 android:layout_height="wrap_content"
297 android:ellipsize="end"
298 android:singleLine="true"
299 android:text="@string/server_info_pep"
300 android:textAppearance="?textAppearanceBodyMedium" />
301
302 <TextView
303 android:id="@+id/server_info_pep"
304 android:layout_width="wrap_content"
305 android:layout_height="wrap_content"
306 android:layout_gravity="end"
307 android:textAppearance="?textAppearanceBodyMedium"
308 tools:ignore="RtlHardcoded" />
309 </TableRow>
310
311 <TableRow
312 android:layout_width="fill_parent"
313 android:layout_height="wrap_content">
314
315 <TextView
316 android:layout_width="wrap_content"
317 android:layout_height="wrap_content"
318 android:ellipsize="end"
319 android:singleLine="true"
320 android:text="@string/server_info_blocking"
321 android:textAppearance="?textAppearanceBodyMedium" />
322
323 <TextView
324 android:id="@+id/server_info_blocking"
325 android:layout_width="wrap_content"
326 android:layout_height="wrap_content"
327 android:layout_gravity="end"
328 android:textAppearance="?textAppearanceBodyMedium"
329 tools:ignore="RtlHardcoded" />
330 </TableRow>
331
332 <TableRow
333 android:layout_width="fill_parent"
334 android:layout_height="wrap_content">
335
336 <TextView
337 android:layout_width="wrap_content"
338 android:layout_height="wrap_content"
339 android:ellipsize="end"
340 android:singleLine="true"
341 android:text="@string/server_info_stream_management"
342 android:textAppearance="?textAppearanceBodyMedium" />
343
344 <TextView
345 android:id="@+id/server_info_sm"
346 android:layout_width="wrap_content"
347 android:layout_height="wrap_content"
348 android:layout_gravity="end"
349 android:textAppearance="?textAppearanceBodyMedium"
350 tools:ignore="RtlHardcoded" />
351 </TableRow>
352
353 <TableRow
354 android:layout_width="fill_parent"
355 android:layout_height="wrap_content">
356
357 <TextView
358 android:layout_width="wrap_content"
359 android:layout_height="wrap_content"
360 android:ellipsize="end"
361 android:singleLine="true"
362 android:text="@string/server_info_external_service_discovery"
363 android:textAppearance="?textAppearanceBodyMedium" />
364
365 <TextView
366 android:id="@+id/server_info_external_service"
367 android:layout_width="wrap_content"
368 android:layout_height="wrap_content"
369 android:layout_gravity="end"
370 android:textAppearance="?textAppearanceBodyMedium"
371 tools:ignore="RtlHardcoded" />
372 </TableRow>
373
374 <TableRow
375 android:layout_width="fill_parent"
376 android:layout_height="wrap_content">
377
378 <TextView
379 android:layout_width="wrap_content"
380 android:layout_height="wrap_content"
381 android:ellipsize="end"
382 android:singleLine="true"
383 android:text="@string/server_info_roster_version"
384 android:textAppearance="?textAppearanceBodyMedium" />
385
386 <TextView
387 android:id="@+id/server_info_roster_version"
388 android:layout_width="wrap_content"
389 android:layout_height="wrap_content"
390 android:layout_gravity="end"
391 android:textAppearance="?textAppearanceBodyMedium"
392 tools:ignore="RtlHardcoded" />
393 </TableRow>
394
395 <TableRow
396 android:layout_width="fill_parent"
397 android:layout_height="wrap_content">
398
399 <TextView
400 android:layout_width="wrap_content"
401 android:layout_height="wrap_content"
402 android:ellipsize="end"
403 android:singleLine="true"
404 android:text="@string/server_info_carbon_messages"
405 android:textAppearance="?textAppearanceBodyMedium" />
406
407 <TextView
408 android:id="@+id/server_info_carbons"
409 android:layout_width="wrap_content"
410 android:layout_height="wrap_content"
411 android:layout_gravity="end"
412 android:textAppearance="?textAppearanceBodyMedium"
413 tools:ignore="RtlHardcoded" />
414 </TableRow>
415
416 <TableRow
417 android:layout_width="fill_parent"
418 android:layout_height="wrap_content">
419
420 <TextView
421 android:layout_width="wrap_content"
422 android:layout_height="wrap_content"
423 android:ellipsize="end"
424 android:singleLine="true"
425 android:text="@string/server_info_mam"
426 android:textAppearance="?textAppearanceBodyMedium" />
427
428 <TextView
429 android:id="@+id/server_info_mam"
430 android:layout_width="wrap_content"
431 android:layout_height="wrap_content"
432 android:layout_gravity="end"
433 android:textAppearance="?textAppearanceBodyMedium"
434 tools:ignore="RtlHardcoded" />
435 </TableRow>
436
437 <TableRow
438 android:layout_width="fill_parent"
439 android:layout_height="wrap_content">
440
441 <TextView
442 android:layout_width="wrap_content"
443 android:layout_height="wrap_content"
444 android:ellipsize="end"
445 android:singleLine="true"
446 android:text="@string/server_info_csi"
447 android:textAppearance="?textAppearanceBodyMedium" />
448
449 <TextView
450 android:id="@+id/server_info_csi"
451 android:layout_width="wrap_content"
452 android:layout_height="wrap_content"
453 android:layout_gravity="end"
454 android:textAppearance="?textAppearanceBodyMedium"
455 tools:ignore="RtlHardcoded" />
456 </TableRow>
457
458 <TableRow
459 android:id="@+id/push_row"
460 android:layout_width="fill_parent"
461 android:layout_height="wrap_content">
462
463 <TextView
464 android:layout_width="wrap_content"
465 android:layout_height="wrap_content"
466 android:ellipsize="end"
467 android:singleLine="true"
468 android:text="@string/server_info_push"
469 android:textAppearance="?textAppearanceBodyMedium" />
470
471 <TextView
472 android:id="@+id/server_info_push"
473 android:layout_width="wrap_content"
474 android:layout_height="wrap_content"
475 android:layout_gravity="end"
476 android:textAppearance="?textAppearanceBodyMedium" />
477 </TableRow>
478
479 <TableRow
480 android:layout_width="fill_parent"
481 android:layout_height="wrap_content">
482
483 <TextView
484 android:layout_width="wrap_content"
485 android:layout_height="wrap_content"
486 android:ellipsize="end"
487 android:singleLine="true"
488 android:text="@string/server_info_http_upload"
489 android:textAppearance="?textAppearanceBodyMedium" />
490
491 <TextView
492 android:id="@+id/server_info_http_upload"
493 android:layout_width="wrap_content"
494 android:layout_height="wrap_content"
495 android:layout_gravity="end"
496 android:textAppearance="?textAppearanceBodyMedium" />
497 </TableRow>
498
499 <TableRow
500 android:layout_width="fill_parent"
501 android:layout_height="wrap_content">
502
503 <TextView
504 android:layout_width="wrap_content"
505 android:layout_height="wrap_content"
506 android:ellipsize="end"
507 android:singleLine="true"
508 android:text="@string/server_info_bind2"
509 android:textAppearance="?textAppearanceBodyMedium" />
510
511 <TextView
512 android:id="@+id/server_info_bind2"
513 android:layout_width="wrap_content"
514 android:layout_height="wrap_content"
515 android:layout_gravity="end"
516 android:textAppearance="?textAppearanceBodyMedium" />
517 </TableRow>
518
519 <TableRow
520 android:layout_width="fill_parent"
521 android:layout_height="wrap_content">
522
523 <TextView
524 android:layout_width="wrap_content"
525 android:layout_height="wrap_content"
526 android:ellipsize="end"
527 android:singleLine="true"
528 android:text="@string/server_info_sasl2"
529 android:textAppearance="?textAppearanceBodyMedium" />
530
531 <TextView
532 android:id="@+id/server_info_sasl2"
533 android:layout_width="wrap_content"
534 android:layout_height="wrap_content"
535 android:layout_gravity="end"
536 android:textAppearance="?textAppearanceBodyMedium" />
537 </TableRow>
538
539 </TableLayout>
540
541 <RelativeLayout
542 android:id="@+id/your_name_box"
543 android:layout_width="wrap_content"
544 android:layout_height="match_parent"
545 android:layout_marginTop="12dp">
546
547 <LinearLayout
548 android:layout_width="wrap_content"
549 android:layout_height="wrap_content"
550 android:layout_alignParentStart="true"
551 android:layout_centerVertical="true"
552 android:layout_toStartOf="@+id/action_edit_your_name"
553 android:orientation="vertical">
554
555 <TextView
556 android:id="@+id/your_name"
557 android:layout_width="wrap_content"
558 android:layout_height="wrap_content"
559 android:text="@string/no_name_set_instructions"
560 android:textAppearance="?textAppearanceBodyMedium" />
561
562 <TextView
563 android:id="@+id/your_name_desc"
564 android:layout_width="wrap_content"
565 android:layout_height="wrap_content"
566 android:text="@string/your_name"
567 android:textAppearance="?textAppearanceLabelMedium" />
568 </LinearLayout>
569
570 <ImageButton
571 android:id="@+id/action_edit_your_name"
572 android:layout_width="wrap_content"
573 android:layout_height="wrap_content"
574 android:layout_alignParentEnd="true"
575 android:layout_centerVertical="true"
576 android:background="?attr/selectableItemBackgroundBorderless"
577 android:contentDescription="@string/edit_nick"
578 android:padding="@dimen/image_button_padding"
579 android:src="@drawable/ic_edit_24dp"
580 android:visibility="visible" />
581 </RelativeLayout>
582
583 <RelativeLayout
584 android:id="@+id/pgp_fingerprint_box"
585 android:layout_width="wrap_content"
586 android:layout_height="match_parent"
587 android:layout_marginTop="12dp">
588
589 <LinearLayout
590 android:layout_width="wrap_content"
591 android:layout_height="wrap_content"
592 android:layout_alignParentStart="true"
593 android:layout_centerVertical="true"
594 android:layout_toStartOf="@+id/action_delete_pgp"
595 android:orientation="vertical">
596
597 <TextView
598 android:id="@+id/pgp_fingerprint"
599 android:layout_width="wrap_content"
600 android:layout_height="wrap_content"
601 android:fontFamily="monospace"
602 android:textAppearance="?textAppearanceBodyMedium" />
603
604 <TextView
605 android:id="@+id/pgp_fingerprint_desc"
606 android:layout_width="wrap_content"
607 android:layout_height="wrap_content"
608 android:text="@string/openpgp_key_id"
609 android:textAppearance="?textAppearanceLabelMedium" />
610 </LinearLayout>
611
612 <ImageButton
613 android:id="@+id/action_delete_pgp"
614 android:layout_width="wrap_content"
615 android:layout_height="wrap_content"
616 android:layout_alignParentEnd="true"
617 android:layout_centerVertical="true"
618 android:background="?attr/selectableItemBackgroundBorderless"
619 android:contentDescription="@string/delete_pgp_key"
620 android:padding="@dimen/image_button_padding"
621 android:src="@drawable/ic_delete_24dp"
622 android:visibility="visible" />
623 </RelativeLayout>
624
625 <RelativeLayout
626 android:id="@+id/axolotl_fingerprint_box"
627 android:layout_width="wrap_content"
628 android:layout_height="match_parent"
629 android:layout_marginTop="12dp">
630
631 <LinearLayout
632 android:layout_width="wrap_content"
633 android:layout_height="wrap_content"
634 android:layout_alignParentStart="true"
635 android:layout_centerVertical="true"
636 android:layout_toStartOf="@+id/axolotl_actions"
637 android:orientation="vertical">
638
639 <TextView
640 android:id="@+id/axolotl_fingerprint"
641 android:layout_width="wrap_content"
642 android:layout_height="wrap_content"
643 android:fontFamily="monospace"
644 android:textAppearance="?textAppearanceBodyMedium" />
645
646 <TextView
647 android:id="@+id/own_fingerprint_desc"
648 android:layout_width="wrap_content"
649 android:layout_height="wrap_content"
650 android:textAppearance="?textAppearanceLabelMedium" />
651 </LinearLayout>
652
653 <LinearLayout
654 android:id="@+id/axolotl_actions"
655 android:layout_width="wrap_content"
656 android:layout_height="wrap_content"
657 android:layout_alignParentEnd="true"
658 android:layout_centerVertical="true"
659 android:orientation="vertical">
660
661 <ImageButton
662 android:id="@+id/show_qr_code_button"
663 android:layout_width="wrap_content"
664 android:layout_height="wrap_content"
665 android:background="?attr/selectableItemBackgroundBorderless"
666 android:contentDescription="@string/show_qr_code"
667 android:padding="@dimen/image_button_padding"
668 android:src="@drawable/ic_qr_code_24dp"
669 android:visibility="visible" />
670
671 <ImageButton
672 android:id="@+id/action_regenerate_axolotl_key"
673 android:layout_width="wrap_content"
674 android:layout_height="wrap_content"
675 android:background="?attr/selectableItemBackgroundBorderless"
676 android:contentDescription="@string/regenerate_omemo_key"
677 android:padding="@dimen/image_button_padding"
678 android:src="@drawable/ic_refresh_24dp"
679 android:visibility="gone" />
680
681 </LinearLayout>
682 </RelativeLayout>
683 </LinearLayout>
684 </com.google.android.material.card.MaterialCardView>
685
686 <com.google.android.material.card.MaterialCardView
687 android:id="@+id/other_device_keys_card"
688 android:layout_width="fill_parent"
689 android:layout_height="wrap_content"
690 android:layout_marginLeft="@dimen/activity_horizontal_margin"
691 android:layout_marginTop="@dimen/activity_vertical_margin"
692 android:layout_marginRight="@dimen/activity_horizontal_margin"
693 android:layout_marginBottom="@dimen/activity_vertical_margin"
694 android:visibility="gone"
695 tools:visibility="visible">
696
697 <LinearLayout
698 android:layout_width="match_parent"
699 android:layout_height="wrap_content"
700 android:orientation="vertical">
701
702 <LinearLayout
703 android:layout_width="match_parent"
704 android:layout_height="wrap_content"
705 android:orientation="vertical"
706 android:padding="@dimen/card_padding_list">
707
708 <TextView
709 android:id="@+id/other_device_keys_title"
710 android:layout_width="wrap_content"
711 android:layout_height="wrap_content"
712 android:layout_margin="@dimen/list_padding"
713 android:text="@string/other_devices"
714 android:textAppearance="?textAppearanceTitleLarge" />
715
716 <LinearLayout
717 android:id="@+id/other_device_keys"
718 android:layout_width="fill_parent"
719 android:layout_height="wrap_content"
720 android:orientation="vertical" />
721 </LinearLayout>
722
723 <LinearLayout
724 android:id="@+id/unverified_warning"
725 android:layout_width="match_parent"
726 android:layout_height="wrap_content"
727 android:paddingHorizontal="@dimen/card_padding_list">
728
729 <!-- Consider using a warning color here. if we do this then contact details activity has the same warning -->
730 <TextView
731 android:layout_width="wrap_content"
732 android:layout_height="wrap_content"
733 android:layout_marginHorizontal="@dimen/list_padding"
734 android:text="@string/unverified_devices"
735 android:textAppearance="?textAppearanceBodyMedium"
736 android:textColor="?colorOnSurfaceVariant" />
737 </LinearLayout>
738
739 <LinearLayout
740 android:layout_width="wrap_content"
741 android:layout_height="match_parent"
742 android:layout_marginTop="8dp"
743 android:orientation="horizontal">
744
745
746 <Button
747 android:id="@+id/scan_button"
748 style="@style/Widget.Material3.Button.TextButton"
749 android:layout_width="wrap_content"
750 android:layout_height="wrap_content"
751 android:minWidth="0dp"
752 android:paddingLeft="16dp"
753 android:paddingRight="16dp"
754 android:text="@string/scan_qr_code" />
755
756 <Button
757 android:id="@+id/clear_devices"
758 style="@style/Widget.Material3.Button.TextButton"
759 android:layout_width="wrap_content"
760 android:layout_height="wrap_content"
761 android:minWidth="0dp"
762 android:paddingLeft="16dp"
763 android:paddingRight="16dp"
764 android:text="@string/clear_other_devices" />
765 </LinearLayout>
766 </LinearLayout>
767
768 </com.google.android.material.card.MaterialCardView>
769 </LinearLayout>
770 </ScrollView>
771
772 <RelativeLayout
773 android:id="@+id/button_bar"
774 android:layout_width="wrap_content"
775 android:layout_height="wrap_content"
776 android:layout_alignParentStart="true"
777 android:layout_alignParentEnd="true"
778 android:layout_alignParentBottom="true"
779 android:paddingHorizontal="16dp"
780 android:paddingVertical="8dp">
781
782 <Button
783 android:id="@+id/cancel_button"
784 style="@style/Widget.Material3.Button.TextButton"
785 android:layout_width="wrap_content"
786 android:layout_height="wrap_content"
787 android:layout_alignParentStart="true"
788 android:layout_centerInParent="true"
789 android:text="@string/cancel" />
790
791
792 <Button
793 android:id="@+id/save_button"
794 android:layout_width="wrap_content"
795 android:layout_height="wrap_content"
796 android:layout_alignParentEnd="true"
797 android:layout_centerInParent="true"
798 android:enabled="false"
799 android:text="@string/save" />
800 </RelativeLayout>
801
802 </RelativeLayout>
803</layout>