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/service_outage"
151 style="?attr/materialCardViewElevatedStyle"
152 android:layout_width="fill_parent"
153 android:layout_height="wrap_content"
154 android:layout_marginLeft="@dimen/activity_horizontal_margin"
155 android:layout_marginTop="@dimen/activity_vertical_margin"
156 android:layout_marginRight="@dimen/activity_horizontal_margin"
157 android:layout_marginBottom="@dimen/activity_vertical_margin"
158 android:visibility="gone"
159 app:cardBackgroundColor="?colorErrorContainer"
160 tools:visibility="visible">
161
162 <LinearLayout
163 android:layout_width="match_parent"
164 android:layout_height="wrap_content"
165 android:orientation="vertical"
166 android:padding="@dimen/card_padding_regular">
167
168
169 <TextView
170 android:id="@+id/sos_title"
171 android:layout_width="wrap_content"
172 android:layout_height="wrap_content"
173 android:text="@string/account_status_service_outage_known"
174 android:textAppearance="?textAppearanceTitleLarge"
175 android:textColor="?colorOnErrorContainer" />
176
177 <TextView
178 android:id="@+id/sos_message"
179 android:layout_width="wrap_content"
180 android:layout_height="wrap_content"
181 android:layout_marginTop="8dp"
182 android:textAppearance="?textAppearanceBodyMedium"
183 android:textColor="?colorOnErrorContainer"
184 android:textColorLink="?colorOnErrorContainer"
185 tools:text="Our service is currently performing server updates" />
186
187 <TextView
188 android:id="@+id/sos_scheduled_end"
189 android:layout_width="wrap_content"
190 android:layout_height="wrap_content"
191 android:layout_marginTop="16sp"
192 android:textAppearance="?textAppearanceBodyLarge"
193 android:textColor="?colorOnErrorContainer"
194 tools:text="@string/sos_scheduled_return" />
195 </LinearLayout>
196 </com.google.android.material.card.MaterialCardView>
197
198
199 <com.google.android.material.card.MaterialCardView
200 android:id="@+id/os_optimization"
201 android:layout_width="fill_parent"
202 android:layout_height="wrap_content"
203 android:layout_marginLeft="@dimen/activity_horizontal_margin"
204 android:layout_marginTop="@dimen/activity_vertical_margin"
205 android:layout_marginRight="@dimen/activity_horizontal_margin"
206 android:layout_marginBottom="@dimen/activity_vertical_margin"
207 android:visibility="gone"
208 tools:visibility="visible">
209
210 <LinearLayout
211 android:layout_width="match_parent"
212 android:layout_height="wrap_content"
213 android:orientation="vertical">
214
215 <LinearLayout
216 android:layout_width="match_parent"
217 android:layout_height="wrap_content"
218 android:orientation="vertical"
219 android:padding="@dimen/card_padding_regular">
220
221 <TextView
222 android:id="@+id/os_optimization_headline"
223 android:layout_width="wrap_content"
224 android:layout_height="wrap_content"
225 android:text="@string/battery_optimizations_enabled"
226 android:textAppearance="?textAppearanceTitleLarge" />
227
228 <TextView
229 android:id="@+id/os_optimization_body"
230 android:layout_width="wrap_content"
231 android:layout_height="wrap_content"
232 android:layout_marginTop="8dp"
233 android:text="@string/battery_optimizations_enabled_explained"
234 android:textAppearance="?textAppearanceBodyMedium" />
235 </LinearLayout>
236
237 <LinearLayout
238 android:layout_width="match_parent"
239 android:layout_height="wrap_content"
240 android:layout_gravity="end"
241 android:layout_marginHorizontal="16dp"
242 android:layout_marginBottom="16dp"
243 android:gravity="end">
244
245 <Button
246 android:id="@+id/os_optimization_disable"
247 style="@style/Widget.Material3.Button.TonalButton"
248 android:layout_width="wrap_content"
249 android:layout_height="wrap_content"
250 android:text="@string/disable" />
251 </LinearLayout>
252 </LinearLayout>
253 </com.google.android.material.card.MaterialCardView>
254
255
256 <com.google.android.material.card.MaterialCardView
257 android:id="@+id/stats"
258 android:layout_width="fill_parent"
259 android:layout_height="fill_parent"
260 android:layout_marginLeft="@dimen/activity_horizontal_margin"
261 android:layout_marginTop="@dimen/activity_vertical_margin"
262 android:layout_marginRight="@dimen/activity_horizontal_margin"
263 android:layout_marginBottom="@dimen/activity_vertical_margin"
264 android:visibility="gone"
265 tools:visibility="visible">
266
267 <LinearLayout
268 android:layout_width="match_parent"
269 android:layout_height="wrap_content"
270 android:orientation="vertical"
271 android:padding="@dimen/card_padding_regular">
272
273 <TableLayout
274 android:layout_width="match_parent"
275 android:layout_height="wrap_content"
276 android:shrinkColumns="0"
277 android:stretchColumns="1">
278
279 <TableRow
280 android:layout_width="fill_parent"
281 android:layout_height="wrap_content"
282 tools:ignore="UselessParent">
283
284 <TextView
285 android:layout_width="wrap_content"
286 android:layout_height="wrap_content"
287 android:ellipsize="end"
288 android:singleLine="true"
289 android:text="@string/server_info_session_established"
290 android:textAppearance="?textAppearanceBodyMedium" />
291
292 <TextView
293 android:id="@+id/session_est"
294 android:layout_width="wrap_content"
295 android:layout_height="wrap_content"
296 android:layout_gravity="end"
297 android:textAppearance="?textAppearanceBodyMedium" />
298 </TableRow>
299
300 </TableLayout>
301
302 <TableLayout
303 android:id="@+id/server_info_login_mechanism"
304 android:layout_width="match_parent"
305 android:layout_height="wrap_content"
306 android:shrinkColumns="0"
307 android:stretchColumns="1"
308 android:visibility="gone">
309
310 <TableRow
311 android:layout_width="fill_parent"
312 android:layout_height="wrap_content">
313
314 <TextView
315 android:layout_width="wrap_content"
316 android:layout_height="wrap_content"
317 android:ellipsize="end"
318 android:singleLine="true"
319 android:text="@string/server_info_login_mechanism"
320 android:textAppearance="?textAppearanceBodyMedium" />
321
322 <TextView
323 android:id="@+id/login_mechanism"
324 android:layout_width="wrap_content"
325 android:layout_height="wrap_content"
326 android:layout_gravity="end"
327 android:textAppearance="?textAppearanceBodyMedium" />
328 </TableRow>
329
330 </TableLayout>
331
332 <TableLayout
333 android:id="@+id/server_info_more"
334 android:layout_width="match_parent"
335 android:layout_height="wrap_content"
336 android:shrinkColumns="0"
337 android:stretchColumns="1"
338 android:visibility="gone">
339
340 <TableRow
341 android:layout_width="fill_parent"
342 android:layout_height="wrap_content">
343
344 <TextView
345 android:layout_width="wrap_content"
346 android:layout_height="wrap_content"
347 android:ellipsize="end"
348 android:singleLine="true"
349 android:text="@string/server_info_pep"
350 android:textAppearance="?textAppearanceBodyMedium" />
351
352 <TextView
353 android:id="@+id/server_info_pep"
354 android:layout_width="wrap_content"
355 android:layout_height="wrap_content"
356 android:layout_gravity="end"
357 android:textAppearance="?textAppearanceBodyMedium"
358 tools:ignore="RtlHardcoded" />
359 </TableRow>
360
361 <TableRow
362 android:layout_width="fill_parent"
363 android:layout_height="wrap_content">
364
365 <TextView
366 android:layout_width="wrap_content"
367 android:layout_height="wrap_content"
368 android:ellipsize="end"
369 android:singleLine="true"
370 android:text="@string/server_info_blocking"
371 android:textAppearance="?textAppearanceBodyMedium" />
372
373 <TextView
374 android:id="@+id/server_info_blocking"
375 android:layout_width="wrap_content"
376 android:layout_height="wrap_content"
377 android:layout_gravity="end"
378 android:textAppearance="?textAppearanceBodyMedium"
379 tools:ignore="RtlHardcoded" />
380 </TableRow>
381
382 <TableRow
383 android:layout_width="fill_parent"
384 android:layout_height="wrap_content">
385
386 <TextView
387 android:layout_width="wrap_content"
388 android:layout_height="wrap_content"
389 android:ellipsize="end"
390 android:singleLine="true"
391 android:text="@string/server_info_stream_management"
392 android:textAppearance="?textAppearanceBodyMedium" />
393
394 <TextView
395 android:id="@+id/server_info_sm"
396 android:layout_width="wrap_content"
397 android:layout_height="wrap_content"
398 android:layout_gravity="end"
399 android:textAppearance="?textAppearanceBodyMedium"
400 tools:ignore="RtlHardcoded" />
401 </TableRow>
402
403 <TableRow
404 android:layout_width="fill_parent"
405 android:layout_height="wrap_content">
406
407 <TextView
408 android:layout_width="wrap_content"
409 android:layout_height="wrap_content"
410 android:ellipsize="end"
411 android:singleLine="true"
412 android:text="@string/server_info_external_service_discovery"
413 android:textAppearance="?textAppearanceBodyMedium" />
414
415 <TextView
416 android:id="@+id/server_info_external_service"
417 android:layout_width="wrap_content"
418 android:layout_height="wrap_content"
419 android:layout_gravity="end"
420 android:textAppearance="?textAppearanceBodyMedium"
421 tools:ignore="RtlHardcoded" />
422 </TableRow>
423
424 <TableRow
425 android:layout_width="fill_parent"
426 android:layout_height="wrap_content">
427
428 <TextView
429 android:layout_width="wrap_content"
430 android:layout_height="wrap_content"
431 android:ellipsize="end"
432 android:singleLine="true"
433 android:text="@string/server_info_roster_version"
434 android:textAppearance="?textAppearanceBodyMedium" />
435
436 <TextView
437 android:id="@+id/server_info_roster_version"
438 android:layout_width="wrap_content"
439 android:layout_height="wrap_content"
440 android:layout_gravity="end"
441 android:textAppearance="?textAppearanceBodyMedium"
442 tools:ignore="RtlHardcoded" />
443 </TableRow>
444
445 <TableRow
446 android:layout_width="fill_parent"
447 android:layout_height="wrap_content">
448
449 <TextView
450 android:layout_width="wrap_content"
451 android:layout_height="wrap_content"
452 android:ellipsize="end"
453 android:singleLine="true"
454 android:text="@string/server_info_carbon_messages"
455 android:textAppearance="?textAppearanceBodyMedium" />
456
457 <TextView
458 android:id="@+id/server_info_carbons"
459 android:layout_width="wrap_content"
460 android:layout_height="wrap_content"
461 android:layout_gravity="end"
462 android:textAppearance="?textAppearanceBodyMedium"
463 tools:ignore="RtlHardcoded" />
464 </TableRow>
465
466 <TableRow
467 android:layout_width="fill_parent"
468 android:layout_height="wrap_content">
469
470 <TextView
471 android:layout_width="wrap_content"
472 android:layout_height="wrap_content"
473 android:ellipsize="end"
474 android:singleLine="true"
475 android:text="@string/server_info_mam"
476 android:textAppearance="?textAppearanceBodyMedium" />
477
478 <TextView
479 android:id="@+id/server_info_mam"
480 android:layout_width="wrap_content"
481 android:layout_height="wrap_content"
482 android:layout_gravity="end"
483 android:textAppearance="?textAppearanceBodyMedium"
484 tools:ignore="RtlHardcoded" />
485 </TableRow>
486
487 <TableRow
488 android:layout_width="fill_parent"
489 android:layout_height="wrap_content">
490
491 <TextView
492 android:layout_width="wrap_content"
493 android:layout_height="wrap_content"
494 android:ellipsize="end"
495 android:singleLine="true"
496 android:text="@string/server_info_csi"
497 android:textAppearance="?textAppearanceBodyMedium" />
498
499 <TextView
500 android:id="@+id/server_info_csi"
501 android:layout_width="wrap_content"
502 android:layout_height="wrap_content"
503 android:layout_gravity="end"
504 android:textAppearance="?textAppearanceBodyMedium"
505 tools:ignore="RtlHardcoded" />
506 </TableRow>
507
508 <TableRow
509 android:id="@+id/push_row"
510 android:layout_width="fill_parent"
511 android:layout_height="wrap_content">
512
513 <TextView
514 android:layout_width="wrap_content"
515 android:layout_height="wrap_content"
516 android:ellipsize="end"
517 android:singleLine="true"
518 android:text="@string/server_info_push"
519 android:textAppearance="?textAppearanceBodyMedium" />
520
521 <TextView
522 android:id="@+id/server_info_push"
523 android:layout_width="wrap_content"
524 android:layout_height="wrap_content"
525 android:layout_gravity="end"
526 android:textAppearance="?textAppearanceBodyMedium" />
527 </TableRow>
528
529 <TableRow
530 android:layout_width="fill_parent"
531 android:layout_height="wrap_content">
532
533 <TextView
534 android:layout_width="wrap_content"
535 android:layout_height="wrap_content"
536 android:ellipsize="end"
537 android:singleLine="true"
538 android:text="@string/server_info_http_upload"
539 android:textAppearance="?textAppearanceBodyMedium" />
540
541 <TextView
542 android:id="@+id/server_info_http_upload"
543 android:layout_width="wrap_content"
544 android:layout_height="wrap_content"
545 android:layout_gravity="end"
546 android:textAppearance="?textAppearanceBodyMedium" />
547 </TableRow>
548
549 <TableRow
550 android:layout_width="fill_parent"
551 android:layout_height="wrap_content">
552
553 <TextView
554 android:layout_width="wrap_content"
555 android:layout_height="wrap_content"
556 android:ellipsize="end"
557 android:singleLine="true"
558 android:text="@string/server_info_bind2"
559 android:textAppearance="?textAppearanceBodyMedium" />
560
561 <TextView
562 android:id="@+id/server_info_bind2"
563 android:layout_width="wrap_content"
564 android:layout_height="wrap_content"
565 android:layout_gravity="end"
566 android:textAppearance="?textAppearanceBodyMedium" />
567 </TableRow>
568
569 <TableRow
570 android:layout_width="fill_parent"
571 android:layout_height="wrap_content">
572
573 <TextView
574 android:layout_width="wrap_content"
575 android:layout_height="wrap_content"
576 android:ellipsize="end"
577 android:singleLine="true"
578 android:text="@string/server_info_sasl2"
579 android:textAppearance="?textAppearanceBodyMedium" />
580
581 <TextView
582 android:id="@+id/server_info_sasl2"
583 android:layout_width="wrap_content"
584 android:layout_height="wrap_content"
585 android:layout_gravity="end"
586 android:textAppearance="?textAppearanceBodyMedium" />
587 </TableRow>
588
589 </TableLayout>
590
591 <RelativeLayout
592 android:id="@+id/your_name_box"
593 android:layout_width="wrap_content"
594 android:layout_height="match_parent"
595 android:layout_marginTop="12dp">
596
597 <LinearLayout
598 android:layout_width="wrap_content"
599 android:layout_height="wrap_content"
600 android:layout_alignParentStart="true"
601 android:layout_centerVertical="true"
602 android:layout_toStartOf="@+id/action_edit_your_name"
603 android:orientation="vertical">
604
605 <TextView
606 android:id="@+id/your_name"
607 android:layout_width="wrap_content"
608 android:layout_height="wrap_content"
609 android:text="@string/no_name_set_instructions"
610 android:textAppearance="?textAppearanceBodyMedium" />
611
612 <TextView
613 android:id="@+id/your_name_desc"
614 android:layout_width="wrap_content"
615 android:layout_height="wrap_content"
616 android:text="@string/your_name"
617 android:textAppearance="?textAppearanceLabelMedium" />
618 </LinearLayout>
619
620 <ImageButton
621 android:id="@+id/action_edit_your_name"
622 android:layout_width="wrap_content"
623 android:layout_height="wrap_content"
624 android:layout_alignParentEnd="true"
625 android:layout_centerVertical="true"
626 android:background="?attr/selectableItemBackgroundBorderless"
627 android:contentDescription="@string/edit_nick"
628 android:padding="@dimen/image_button_padding"
629 android:src="@drawable/ic_edit_24dp"
630 android:visibility="visible" />
631 </RelativeLayout>
632
633 <RelativeLayout
634 android:id="@+id/pgp_fingerprint_box"
635 android:layout_width="wrap_content"
636 android:layout_height="match_parent"
637 android:layout_marginTop="12dp">
638
639 <LinearLayout
640 android:layout_width="wrap_content"
641 android:layout_height="wrap_content"
642 android:layout_alignParentStart="true"
643 android:layout_centerVertical="true"
644 android:layout_toStartOf="@+id/action_delete_pgp"
645 android:orientation="vertical">
646
647 <TextView
648 android:id="@+id/pgp_fingerprint"
649 android:layout_width="wrap_content"
650 android:layout_height="wrap_content"
651 android:fontFamily="monospace"
652 android:textAppearance="?textAppearanceBodyMedium" />
653
654 <TextView
655 android:id="@+id/pgp_fingerprint_desc"
656 android:layout_width="wrap_content"
657 android:layout_height="wrap_content"
658 android:text="@string/openpgp_key_id"
659 android:textAppearance="?textAppearanceLabelMedium" />
660 </LinearLayout>
661
662 <ImageButton
663 android:id="@+id/action_delete_pgp"
664 android:layout_width="wrap_content"
665 android:layout_height="wrap_content"
666 android:layout_alignParentEnd="true"
667 android:layout_centerVertical="true"
668 android:background="?attr/selectableItemBackgroundBorderless"
669 android:contentDescription="@string/delete_pgp_key"
670 android:padding="@dimen/image_button_padding"
671 android:src="@drawable/ic_delete_24dp"
672 android:visibility="visible" />
673 </RelativeLayout>
674
675 <RelativeLayout
676 android:id="@+id/axolotl_fingerprint_box"
677 android:layout_width="wrap_content"
678 android:layout_height="match_parent"
679 android:layout_marginTop="12dp">
680
681 <LinearLayout
682 android:layout_width="wrap_content"
683 android:layout_height="wrap_content"
684 android:layout_alignParentStart="true"
685 android:layout_centerVertical="true"
686 android:layout_toStartOf="@+id/axolotl_actions"
687 android:orientation="vertical">
688
689 <TextView
690 android:id="@+id/axolotl_fingerprint"
691 android:layout_width="wrap_content"
692 android:layout_height="wrap_content"
693 android:fontFamily="monospace"
694 android:textAppearance="?textAppearanceBodyMedium" />
695
696 <TextView
697 android:id="@+id/own_fingerprint_desc"
698 android:layout_width="wrap_content"
699 android:layout_height="wrap_content"
700 android:textAppearance="?textAppearanceLabelMedium" />
701 </LinearLayout>
702
703 <LinearLayout
704 android:id="@+id/axolotl_actions"
705 android:layout_width="wrap_content"
706 android:layout_height="wrap_content"
707 android:layout_alignParentEnd="true"
708 android:layout_centerVertical="true"
709 android:orientation="vertical">
710
711 <ImageButton
712 android:id="@+id/show_qr_code_button"
713 android:layout_width="wrap_content"
714 android:layout_height="wrap_content"
715 android:background="?attr/selectableItemBackgroundBorderless"
716 android:contentDescription="@string/show_qr_code"
717 android:padding="@dimen/image_button_padding"
718 android:src="@drawable/ic_qr_code_24dp"
719 android:visibility="visible" />
720
721 <ImageButton
722 android:id="@+id/action_regenerate_axolotl_key"
723 android:layout_width="wrap_content"
724 android:layout_height="wrap_content"
725 android:background="?attr/selectableItemBackgroundBorderless"
726 android:contentDescription="@string/regenerate_omemo_key"
727 android:padding="@dimen/image_button_padding"
728 android:src="@drawable/ic_refresh_24dp"
729 android:visibility="gone" />
730
731 </LinearLayout>
732 </RelativeLayout>
733 </LinearLayout>
734 </com.google.android.material.card.MaterialCardView>
735
736 <com.google.android.material.card.MaterialCardView
737 android:id="@+id/other_device_keys_card"
738 android:layout_width="fill_parent"
739 android:layout_height="wrap_content"
740 android:layout_marginLeft="@dimen/activity_horizontal_margin"
741 android:layout_marginTop="@dimen/activity_vertical_margin"
742 android:layout_marginRight="@dimen/activity_horizontal_margin"
743 android:layout_marginBottom="@dimen/activity_vertical_margin"
744 android:visibility="gone"
745 tools:visibility="visible">
746
747 <LinearLayout
748 android:layout_width="match_parent"
749 android:layout_height="wrap_content"
750 android:orientation="vertical">
751
752 <LinearLayout
753 android:layout_width="match_parent"
754 android:layout_height="wrap_content"
755 android:orientation="vertical"
756 android:padding="@dimen/card_padding_list">
757
758 <TextView
759 android:id="@+id/other_device_keys_title"
760 android:layout_width="wrap_content"
761 android:layout_height="wrap_content"
762 android:layout_margin="@dimen/list_padding"
763 android:text="@string/other_devices"
764 android:textAppearance="?textAppearanceTitleLarge" />
765
766 <LinearLayout
767 android:id="@+id/other_device_keys"
768 android:layout_width="fill_parent"
769 android:layout_height="wrap_content"
770 android:orientation="vertical" />
771 </LinearLayout>
772
773 <LinearLayout
774 android:id="@+id/unverified_warning"
775 android:layout_width="match_parent"
776 android:layout_height="wrap_content"
777 android:paddingHorizontal="@dimen/card_padding_list">
778
779 <!-- Consider using a warning color here. if we do this then contact details activity has the same warning -->
780 <TextView
781 android:layout_width="wrap_content"
782 android:layout_height="wrap_content"
783 android:layout_marginHorizontal="@dimen/list_padding"
784 android:text="@string/unverified_devices"
785 android:textAppearance="?textAppearanceBodyMedium"
786 android:textColor="?colorOnSurfaceVariant" />
787 </LinearLayout>
788
789 <LinearLayout
790 android:layout_width="wrap_content"
791 android:layout_height="match_parent"
792 android:layout_marginTop="8dp"
793 android:orientation="horizontal">
794
795
796 <Button
797 android:id="@+id/scan_button"
798 style="@style/Widget.Material3.Button.TextButton"
799 android:layout_width="wrap_content"
800 android:layout_height="wrap_content"
801 android:minWidth="0dp"
802 android:paddingLeft="16dp"
803 android:paddingRight="16dp"
804 android:text="@string/scan_qr_code" />
805
806 <Button
807 android:id="@+id/clear_devices"
808 style="@style/Widget.Material3.Button.TextButton"
809 android:layout_width="wrap_content"
810 android:layout_height="wrap_content"
811 android:minWidth="0dp"
812 android:paddingLeft="16dp"
813 android:paddingRight="16dp"
814 android:text="@string/clear_other_devices" />
815 </LinearLayout>
816 </LinearLayout>
817
818 </com.google.android.material.card.MaterialCardView>
819 </LinearLayout>
820 </ScrollView>
821
822 <RelativeLayout
823 android:id="@+id/button_bar"
824 android:layout_width="wrap_content"
825 android:layout_height="wrap_content"
826 android:layout_alignParentStart="true"
827 android:layout_alignParentEnd="true"
828 android:layout_alignParentBottom="true"
829 android:paddingHorizontal="16dp"
830 android:paddingVertical="8dp">
831
832 <Button
833 android:id="@+id/cancel_button"
834 style="@style/Widget.Material3.Button.TextButton"
835 android:layout_width="wrap_content"
836 android:layout_height="wrap_content"
837 android:layout_alignParentStart="true"
838 android:layout_centerInParent="true"
839 android:text="@string/cancel" />
840
841
842 <Button
843 android:id="@+id/save_button"
844 android:layout_width="wrap_content"
845 android:layout_height="wrap_content"
846 android:layout_alignParentEnd="true"
847 android:layout_centerInParent="true"
848 android:enabled="false"
849 android:text="@string/save" />
850 </RelativeLayout>
851
852 </RelativeLayout>
853</layout>