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 android:fitsSystemWindows="true">
10
11 <com.google.android.material.appbar.AppBarLayout
12 android:id="@+id/app_bar_layout"
13 android:layout_width="match_parent"
14 android:layout_height="wrap_content">
15
16 <com.google.android.material.appbar.MaterialToolbar
17 android:id="@+id/toolbar"
18 android:layout_width="match_parent"
19 android:layout_height="wrap_content"
20 android:minHeight="?attr/actionBarSize" />
21
22 </com.google.android.material.appbar.AppBarLayout>
23
24 <ScrollView
25 android:layout_width="fill_parent"
26 android:layout_height="wrap_content"
27 android:layout_above="@+id/button_bar"
28 android:layout_below="@id/app_bar_layout">
29
30 <LinearLayout
31 android:id="@+id/account_main_layout"
32 android:layout_width="match_parent"
33 android:layout_height="wrap_content"
34 android:orientation="vertical">
35
36
37 <com.google.android.material.card.MaterialCardView
38 android:id="@+id/editor"
39 android:layout_width="fill_parent"
40 android:layout_height="wrap_content"
41 android:layout_marginLeft="@dimen/activity_horizontal_margin"
42 android:layout_marginTop="@dimen/activity_vertical_margin"
43 android:layout_marginRight="@dimen/activity_horizontal_margin"
44 android:layout_marginBottom="@dimen/activity_vertical_margin">
45
46 <RelativeLayout
47 android:layout_width="match_parent"
48 android:layout_height="wrap_content"
49 android:padding="@dimen/card_padding_regular">
50
51 <com.google.android.material.imageview.ShapeableImageView
52 android:id="@+id/avater"
53 android:layout_width="@dimen/avatar_on_details_screen_size"
54 android:layout_height="@dimen/avatar_on_details_screen_size"
55 android:layout_alignParentTop="true"
56 android:layout_marginEnd="@dimen/avatar_item_distance"
57 android:contentDescription="@string/account_image_description"
58 app:shapeAppearance="@style/ShapeAppearanceOverlay.Photo" />
59
60 <LinearLayout
61 android:layout_width="fill_parent"
62 android:layout_height="wrap_content"
63 android:layout_toEndOf="@+id/avater"
64 android:orientation="vertical">
65
66 <com.google.android.material.textfield.TextInputLayout
67 android:id="@+id/account_jid_layout"
68 style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
69 android:layout_width="match_parent"
70 android:layout_height="wrap_content"
71 android:hint="@string/account_settings_jabber_id">
72
73 <com.google.android.material.textfield.MaterialAutoCompleteTextView
74 android:id="@+id/account_jid"
75 android:layout_width="match_parent"
76 android:layout_height="wrap_content"
77 android:imeOptions="actionNext"
78 android:inputType="textEmailAddress"
79 android:padding="16dp" />
80 </com.google.android.material.textfield.TextInputLayout>
81
82
83 <com.google.android.material.textfield.TextInputLayout
84 android:id="@+id/account_password_layout"
85 android:layout_width="match_parent"
86 android:layout_height="wrap_content"
87 android:layout_marginTop="4sp"
88 android:hint="@string/password"
89 app:endIconMode="password_toggle">
90
91 <eu.siacs.conversations.ui.widget.TextInputEditText
92 android:id="@+id/account_password"
93 android:layout_width="match_parent"
94 android:layout_height="wrap_content"
95 android:inputType="textPassword" />
96 </com.google.android.material.textfield.TextInputLayout>
97
98 <LinearLayout
99 android:id="@+id/name_port"
100 android:layout_width="fill_parent"
101 android:layout_height="wrap_content"
102 android:layout_marginTop="8sp"
103 android:orientation="horizontal"
104 android:weightSum="1">
105
106
107 <com.google.android.material.textfield.TextInputLayout
108 android:id="@+id/hostname_layout"
109 android:layout_width="0dp"
110 android:layout_height="wrap_content"
111 android:layout_marginEnd="4sp"
112 android:layout_weight="0.7"
113 android:hint="@string/account_settings_hostname">
114
115 <EditText
116 android:id="@+id/hostname"
117 android:layout_width="fill_parent"
118 android:layout_height="wrap_content"
119 android:inputType="textWebEmailAddress" />
120 </com.google.android.material.textfield.TextInputLayout>
121
122
123 <com.google.android.material.textfield.TextInputLayout
124 android:id="@+id/port_layout"
125 android:layout_width="0dp"
126 android:layout_height="wrap_content"
127 android:layout_marginStart="4sp"
128 android:layout_weight="0.3"
129 android:hint="@string/account_settings_port">
130
131 <EditText
132 android:id="@+id/port"
133 android:layout_width="match_parent"
134 android:layout_height="match_parent"
135 android:inputType="number"
136 android:maxLength="5" />
137 </com.google.android.material.textfield.TextInputLayout>
138 </LinearLayout>
139
140 <CheckBox
141 android:id="@+id/account_register_new"
142 android:layout_width="wrap_content"
143 android:layout_height="wrap_content"
144 android:layout_marginTop="8dp"
145 android:text="@string/register_account" />
146 </LinearLayout>
147 </RelativeLayout>
148 </com.google.android.material.card.MaterialCardView>
149
150 <com.google.android.material.card.MaterialCardView
151 android:id="@+id/service_outage"
152 style="?attr/materialCardViewElevatedStyle"
153 android:layout_width="fill_parent"
154 android:layout_height="wrap_content"
155 android:layout_marginLeft="@dimen/activity_horizontal_margin"
156 android:layout_marginTop="@dimen/activity_vertical_margin"
157 android:layout_marginRight="@dimen/activity_horizontal_margin"
158 android:layout_marginBottom="@dimen/activity_vertical_margin"
159 android:visibility="gone"
160 app:cardBackgroundColor="?colorErrorContainer"
161 tools:visibility="visible">
162
163 <LinearLayout
164 android:layout_width="match_parent"
165 android:layout_height="wrap_content"
166 android:orientation="vertical"
167 android:padding="@dimen/card_padding_regular">
168
169
170 <TextView
171 android:id="@+id/sos_title"
172 android:layout_width="wrap_content"
173 android:layout_height="wrap_content"
174 android:text="@string/account_status_service_outage_known"
175 android:textAppearance="?textAppearanceTitleLarge"
176 android:textColor="?colorOnErrorContainer" />
177
178 <TextView
179 android:id="@+id/sos_message"
180 android:layout_width="wrap_content"
181 android:layout_height="wrap_content"
182 android:layout_marginTop="8dp"
183 android:textAppearance="?textAppearanceBodyMedium"
184 android:textColor="?colorOnErrorContainer"
185 android:textColorLink="?colorOnErrorContainer"
186 tools:text="Our service is currently performing server updates" />
187
188 <TextView
189 android:id="@+id/sos_scheduled_end"
190 android:layout_width="wrap_content"
191 android:layout_height="wrap_content"
192 android:layout_marginTop="16sp"
193 android:textAppearance="?textAppearanceBodyLarge"
194 android:textColor="?colorOnErrorContainer"
195 tools:text="@string/sos_scheduled_return" />
196 </LinearLayout>
197 </com.google.android.material.card.MaterialCardView>
198
199
200 <com.google.android.material.card.MaterialCardView
201 android:id="@+id/os_optimization"
202 android:layout_width="fill_parent"
203 android:layout_height="wrap_content"
204 android:layout_marginLeft="@dimen/activity_horizontal_margin"
205 android:layout_marginTop="@dimen/activity_vertical_margin"
206 android:layout_marginRight="@dimen/activity_horizontal_margin"
207 android:layout_marginBottom="@dimen/activity_vertical_margin"
208 android:visibility="gone"
209 tools:visibility="visible">
210
211 <LinearLayout
212 android:layout_width="match_parent"
213 android:layout_height="wrap_content"
214 android:orientation="vertical">
215
216 <LinearLayout
217 android:layout_width="match_parent"
218 android:layout_height="wrap_content"
219 android:orientation="vertical"
220 android:padding="@dimen/card_padding_regular">
221
222 <TextView
223 android:id="@+id/os_optimization_headline"
224 android:layout_width="wrap_content"
225 android:layout_height="wrap_content"
226 android:text="@string/battery_optimizations_enabled"
227 android:textAppearance="?textAppearanceTitleLarge" />
228
229 <TextView
230 android:id="@+id/os_optimization_body"
231 android:layout_width="wrap_content"
232 android:layout_height="wrap_content"
233 android:layout_marginTop="8dp"
234 android:text="@string/battery_optimizations_enabled_explained"
235 android:textAppearance="?textAppearanceBodyMedium" />
236 </LinearLayout>
237
238 <LinearLayout
239 android:layout_width="match_parent"
240 android:layout_height="wrap_content"
241 android:layout_gravity="end"
242 android:layout_marginHorizontal="16dp"
243 android:layout_marginBottom="16dp"
244 android:gravity="end">
245
246 <Button
247 android:id="@+id/os_optimization_disable"
248 style="@style/Widget.Material3.Button.TonalButton"
249 android:layout_width="wrap_content"
250 android:layout_height="wrap_content"
251 android:text="@string/disable" />
252 </LinearLayout>
253 </LinearLayout>
254 </com.google.android.material.card.MaterialCardView>
255
256
257 <com.google.android.material.card.MaterialCardView
258 android:id="@+id/stats"
259 android:layout_width="fill_parent"
260 android:layout_height="fill_parent"
261 android:layout_marginLeft="@dimen/activity_horizontal_margin"
262 android:layout_marginTop="@dimen/activity_vertical_margin"
263 android:layout_marginRight="@dimen/activity_horizontal_margin"
264 android:layout_marginBottom="@dimen/activity_vertical_margin"
265 android:visibility="gone"
266 tools:visibility="visible">
267
268 <LinearLayout
269 android:layout_width="match_parent"
270 android:layout_height="wrap_content"
271 android:orientation="vertical"
272 android:padding="@dimen/card_padding_regular">
273
274 <TableLayout
275 android:layout_width="match_parent"
276 android:layout_height="wrap_content"
277 android:shrinkColumns="0"
278 android:stretchColumns="1">
279
280 <TableRow
281 android:layout_width="fill_parent"
282 android:layout_height="wrap_content"
283 tools:ignore="UselessParent">
284
285 <TextView
286 android:layout_width="wrap_content"
287 android:layout_height="wrap_content"
288 android:ellipsize="end"
289 android:singleLine="true"
290 android:text="@string/server_info_session_established"
291 android:textAppearance="?textAppearanceBodyMedium" />
292
293 <TextView
294 android:id="@+id/session_est"
295 android:layout_width="wrap_content"
296 android:layout_height="wrap_content"
297 android:layout_gravity="end"
298 android:textAppearance="?textAppearanceBodyMedium" />
299 </TableRow>
300
301 </TableLayout>
302
303 <TableLayout
304 android:id="@+id/server_info_login_mechanism"
305 android:layout_width="match_parent"
306 android:layout_height="wrap_content"
307 android:shrinkColumns="0"
308 android:stretchColumns="1"
309 android:visibility="gone">
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_login_mechanism"
321 android:textAppearance="?textAppearanceBodyMedium" />
322
323 <TextView
324 android:id="@+id/login_mechanism"
325 android:layout_width="wrap_content"
326 android:layout_height="wrap_content"
327 android:layout_gravity="end"
328 android:textAppearance="?textAppearanceBodyMedium" />
329 </TableRow>
330
331 </TableLayout>
332
333 <TableLayout
334 android:id="@+id/server_info_more"
335 android:layout_width="match_parent"
336 android:layout_height="wrap_content"
337 android:shrinkColumns="0"
338 android:stretchColumns="1"
339 android:visibility="gone">
340
341 <TableRow
342 android:layout_width="fill_parent"
343 android:layout_height="wrap_content">
344
345 <TextView
346 android:layout_width="wrap_content"
347 android:layout_height="wrap_content"
348 android:ellipsize="end"
349 android:singleLine="true"
350 android:text="@string/server_info_pep"
351 android:textAppearance="?textAppearanceBodyMedium" />
352
353 <TextView
354 android:id="@+id/server_info_pep"
355 android:layout_width="wrap_content"
356 android:layout_height="wrap_content"
357 android:layout_gravity="end"
358 android:textAppearance="?textAppearanceBodyMedium"
359 tools:ignore="RtlHardcoded" />
360 </TableRow>
361
362 <TableRow
363 android:layout_width="fill_parent"
364 android:layout_height="wrap_content">
365
366 <TextView
367 android:layout_width="wrap_content"
368 android:layout_height="wrap_content"
369 android:ellipsize="end"
370 android:singleLine="true"
371 android:text="@string/server_info_blocking"
372 android:textAppearance="?textAppearanceBodyMedium" />
373
374 <TextView
375 android:id="@+id/server_info_blocking"
376 android:layout_width="wrap_content"
377 android:layout_height="wrap_content"
378 android:layout_gravity="end"
379 android:textAppearance="?textAppearanceBodyMedium"
380 tools:ignore="RtlHardcoded" />
381 </TableRow>
382
383 <TableRow
384 android:layout_width="fill_parent"
385 android:layout_height="wrap_content">
386
387 <TextView
388 android:layout_width="wrap_content"
389 android:layout_height="wrap_content"
390 android:ellipsize="end"
391 android:singleLine="true"
392 android:text="@string/server_info_stream_management"
393 android:textAppearance="?textAppearanceBodyMedium" />
394
395 <TextView
396 android:id="@+id/server_info_sm"
397 android:layout_width="wrap_content"
398 android:layout_height="wrap_content"
399 android:layout_gravity="end"
400 android:textAppearance="?textAppearanceBodyMedium"
401 tools:ignore="RtlHardcoded" />
402 </TableRow>
403
404 <TableRow
405 android:layout_width="fill_parent"
406 android:layout_height="wrap_content">
407
408 <TextView
409 android:layout_width="wrap_content"
410 android:layout_height="wrap_content"
411 android:ellipsize="end"
412 android:singleLine="true"
413 android:text="@string/server_info_external_service_discovery"
414 android:textAppearance="?textAppearanceBodyMedium" />
415
416 <TextView
417 android:id="@+id/server_info_external_service"
418 android:layout_width="wrap_content"
419 android:layout_height="wrap_content"
420 android:layout_gravity="end"
421 android:textAppearance="?textAppearanceBodyMedium"
422 tools:ignore="RtlHardcoded" />
423 </TableRow>
424
425 <TableRow
426 android:layout_width="fill_parent"
427 android:layout_height="wrap_content">
428
429 <TextView
430 android:layout_width="wrap_content"
431 android:layout_height="wrap_content"
432 android:ellipsize="end"
433 android:singleLine="true"
434 android:text="@string/server_info_roster_version"
435 android:textAppearance="?textAppearanceBodyMedium" />
436
437 <TextView
438 android:id="@+id/server_info_roster_version"
439 android:layout_width="wrap_content"
440 android:layout_height="wrap_content"
441 android:layout_gravity="end"
442 android:textAppearance="?textAppearanceBodyMedium"
443 tools:ignore="RtlHardcoded" />
444 </TableRow>
445
446 <TableRow
447 android:layout_width="fill_parent"
448 android:layout_height="wrap_content">
449
450 <TextView
451 android:layout_width="wrap_content"
452 android:layout_height="wrap_content"
453 android:ellipsize="end"
454 android:singleLine="true"
455 android:text="@string/server_info_carbon_messages"
456 android:textAppearance="?textAppearanceBodyMedium" />
457
458 <TextView
459 android:id="@+id/server_info_carbons"
460 android:layout_width="wrap_content"
461 android:layout_height="wrap_content"
462 android:layout_gravity="end"
463 android:textAppearance="?textAppearanceBodyMedium"
464 tools:ignore="RtlHardcoded" />
465 </TableRow>
466
467 <TableRow
468 android:layout_width="fill_parent"
469 android:layout_height="wrap_content">
470
471 <TextView
472 android:layout_width="wrap_content"
473 android:layout_height="wrap_content"
474 android:ellipsize="end"
475 android:singleLine="true"
476 android:text="@string/server_info_mam"
477 android:textAppearance="?textAppearanceBodyMedium" />
478
479 <TextView
480 android:id="@+id/server_info_mam"
481 android:layout_width="wrap_content"
482 android:layout_height="wrap_content"
483 android:layout_gravity="end"
484 android:textAppearance="?textAppearanceBodyMedium"
485 tools:ignore="RtlHardcoded" />
486 </TableRow>
487
488 <TableRow
489 android:layout_width="fill_parent"
490 android:layout_height="wrap_content">
491
492 <TextView
493 android:layout_width="wrap_content"
494 android:layout_height="wrap_content"
495 android:ellipsize="end"
496 android:singleLine="true"
497 android:text="@string/server_info_csi"
498 android:textAppearance="?textAppearanceBodyMedium" />
499
500 <TextView
501 android:id="@+id/server_info_csi"
502 android:layout_width="wrap_content"
503 android:layout_height="wrap_content"
504 android:layout_gravity="end"
505 android:textAppearance="?textAppearanceBodyMedium"
506 tools:ignore="RtlHardcoded" />
507 </TableRow>
508
509 <TableRow
510 android:id="@+id/push_row"
511 android:layout_width="fill_parent"
512 android:layout_height="wrap_content">
513
514 <TextView
515 android:layout_width="wrap_content"
516 android:layout_height="wrap_content"
517 android:ellipsize="end"
518 android:singleLine="true"
519 android:text="@string/server_info_push"
520 android:textAppearance="?textAppearanceBodyMedium" />
521
522 <TextView
523 android:id="@+id/server_info_push"
524 android:layout_width="wrap_content"
525 android:layout_height="wrap_content"
526 android:layout_gravity="end"
527 android:textAppearance="?textAppearanceBodyMedium" />
528 </TableRow>
529
530 <TableRow
531 android:layout_width="fill_parent"
532 android:layout_height="wrap_content">
533
534 <TextView
535 android:layout_width="wrap_content"
536 android:layout_height="wrap_content"
537 android:ellipsize="end"
538 android:singleLine="true"
539 android:text="@string/server_info_http_upload"
540 android:textAppearance="?textAppearanceBodyMedium" />
541
542 <TextView
543 android:id="@+id/server_info_http_upload"
544 android:layout_width="wrap_content"
545 android:layout_height="wrap_content"
546 android:layout_gravity="end"
547 android:textAppearance="?textAppearanceBodyMedium" />
548 </TableRow>
549
550 <TableRow
551 android:layout_width="fill_parent"
552 android:layout_height="wrap_content">
553
554 <TextView
555 android:layout_width="wrap_content"
556 android:layout_height="wrap_content"
557 android:ellipsize="end"
558 android:singleLine="true"
559 android:text="@string/server_info_bind2"
560 android:textAppearance="?textAppearanceBodyMedium" />
561
562 <TextView
563 android:id="@+id/server_info_bind2"
564 android:layout_width="wrap_content"
565 android:layout_height="wrap_content"
566 android:layout_gravity="end"
567 android:textAppearance="?textAppearanceBodyMedium" />
568 </TableRow>
569
570 <TableRow
571 android:layout_width="fill_parent"
572 android:layout_height="wrap_content">
573
574 <TextView
575 android:layout_width="wrap_content"
576 android:layout_height="wrap_content"
577 android:ellipsize="end"
578 android:singleLine="true"
579 android:text="@string/server_info_sasl2"
580 android:textAppearance="?textAppearanceBodyMedium" />
581
582 <TextView
583 android:id="@+id/server_info_sasl2"
584 android:layout_width="wrap_content"
585 android:layout_height="wrap_content"
586 android:layout_gravity="end"
587 android:textAppearance="?textAppearanceBodyMedium" />
588 </TableRow>
589
590 </TableLayout>
591
592 <RelativeLayout
593 android:id="@+id/verification_box"
594 android:layout_width="wrap_content"
595 android:layout_height="match_parent"
596 android:layout_marginTop="12dp">
597
598 <LinearLayout
599 android:layout_width="wrap_content"
600 android:layout_height="wrap_content"
601 android:layout_alignParentStart="true"
602 android:layout_centerVertical="true"
603 android:layout_toLeftOf="@+id/verification_indicator"
604 android:orientation="vertical">
605
606 <TextView
607 android:id="@+id/verification_message"
608 android:layout_width="wrap_content"
609 android:layout_height="wrap_content"
610 android:text="Not DNSSEC Verified"
611 android:textAppearance="?textAppearanceBodyMedium" />
612 </LinearLayout>
613
614 <ImageView
615 android:id="@+id/verification_indicator"
616 android:layout_width="wrap_content"
617 android:layout_height="wrap_content"
618 android:layout_alignParentRight="true"
619 android:layout_centerVertical="true"
620 android:background="?attr/selectableItemBackgroundBorderless"
621 android:padding="@dimen/image_button_padding"
622 android:src="@drawable/shield_question"
623 android:visibility="visible" />
624 </RelativeLayout>
625
626 <RelativeLayout
627 android:id="@+id/your_name_box"
628 android:layout_width="wrap_content"
629 android:layout_height="match_parent"
630 android:layout_marginTop="0dp">
631
632 <LinearLayout
633 android:layout_width="wrap_content"
634 android:layout_height="wrap_content"
635 android:layout_alignParentLeft="true"
636 android:layout_centerVertical="true"
637 android:layout_toStartOf="@+id/action_edit_your_name"
638 android:orientation="vertical">
639
640 <TextView
641 android:id="@+id/your_name"
642 android:layout_width="wrap_content"
643 android:layout_height="wrap_content"
644 android:text="@string/no_name_set_instructions"
645 android:textAppearance="?textAppearanceBodyMedium" />
646
647 <TextView
648 android:id="@+id/your_name_desc"
649 android:layout_width="wrap_content"
650 android:layout_height="wrap_content"
651 android:text="@string/your_name"
652 android:textAppearance="?textAppearanceLabelMedium" />
653 </LinearLayout>
654
655 <ImageButton
656 android:id="@+id/action_edit_your_name"
657 android:layout_width="wrap_content"
658 android:layout_height="wrap_content"
659 android:layout_alignParentEnd="true"
660 android:layout_centerVertical="true"
661 android:background="?attr/selectableItemBackgroundBorderless"
662 android:contentDescription="@string/edit_nick"
663 android:padding="@dimen/image_button_padding"
664 android:src="@drawable/ic_edit_24dp"
665 android:visibility="visible" />
666 </RelativeLayout>
667
668 <RelativeLayout
669 android:id="@+id/account_color_box"
670 android:layout_width="wrap_content"
671 android:layout_height="match_parent"
672 android:layout_marginTop="12dp">
673
674 <LinearLayout
675 android:layout_width="wrap_content"
676 android:layout_height="wrap_content"
677 android:layout_alignParentLeft="true"
678 android:layout_centerVertical="true"
679 android:layout_toLeftOf="@+id/account_color_thumbnail"
680 android:orientation="vertical">
681
682 <TextView
683 android:layout_width="wrap_content"
684 android:layout_height="wrap_content"
685 android:text="Account Color"
686 android:textAppearance="?textAppearanceBodyMedium"/>
687
688
689 <TextView
690 android:layout_width="wrap_content"
691 android:layout_height="wrap_content"
692 android:text="Used on conversation and contact lists, and notifications"
693 android:textAppearance="?textAppearanceBodyMedium"/>
694 </LinearLayout>
695
696 <FrameLayout
697 android:id="@+id/account_color_thumbnail"
698 android:layout_width="48dp"
699 android:layout_height="48dp"
700 android:background="@drawable/thumbnail_border"
701 android:layout_alignParentRight="true"
702 android:layout_centerVertical="true">
703
704 <View
705 android:layout_margin="1dp"
706 android:id="@+id/colorPreview"
707 android:layout_width="fill_parent"
708 android:layout_height="fill_parent" />
709
710 </FrameLayout>
711 </RelativeLayout>
712
713 <RelativeLayout
714 android:id="@+id/quiet_hours_box"
715 android:layout_width="wrap_content"
716 android:layout_height="match_parent"
717 android:layout_marginTop="12dp">
718
719 <LinearLayout
720 android:layout_width="wrap_content"
721 android:layout_height="wrap_content"
722 android:layout_alignParentLeft="true"
723 android:layout_centerVertical="true"
724 android:layout_toLeftOf="@+id/quiet_hours_enable"
725 android:orientation="vertical">
726
727 <TextView
728 android:layout_width="wrap_content"
729 android:layout_height="wrap_content"
730 android:text="@string/title_pref_enable_quiet_hours"
731 android:textAppearance="?textAppearanceBodyMedium"/>
732
733 <TextView
734 android:layout_width="wrap_content"
735 android:layout_height="wrap_content"
736 android:text="@string/pref_quiet_hours_summary"
737 android:textAppearance="?textAppearanceBodyMedium"/>
738 </LinearLayout>
739
740 <androidx.appcompat.widget.SwitchCompat
741 android:id="@+id/quiet_hours_enable"
742 android:layout_width="wrap_content"
743 android:layout_height="wrap_content"
744 android:layout_alignParentRight="true"
745 android:layout_centerVertical="true"
746 android:background="?attr/selectableItemBackgroundBorderless"
747 android:visibility="visible"/>
748 </RelativeLayout>
749
750 <RelativeLayout
751 android:id="@+id/quiet_hours_start_box"
752 android:visibility="gone"
753 android:layout_width="wrap_content"
754 android:layout_height="match_parent"
755 android:layout_marginTop="12dp">
756
757 <LinearLayout
758 android:layout_width="wrap_content"
759 android:layout_height="wrap_content"
760 android:layout_alignParentLeft="true"
761 android:layout_centerVertical="true"
762 android:orientation="vertical">
763
764 <TextView
765 android:layout_width="wrap_content"
766 android:layout_height="wrap_content"
767 android:text="@string/title_pref_quiet_hours_start_time"
768 android:textAppearance="?textAppearanceBodyMedium"/>
769
770 <TextView
771 android:id="@+id/quiet_hours_start"
772 android:layout_width="wrap_content"
773 android:layout_height="wrap_content"
774 android:text=""
775 android:textAppearance="?textAppearanceBodyMedium"/>
776 </LinearLayout>
777 </RelativeLayout>
778
779 <RelativeLayout
780 android:id="@+id/quiet_hours_end_box"
781 android:visibility="gone"
782 android:layout_width="wrap_content"
783 android:layout_height="match_parent"
784 android:layout_marginTop="12dp">
785
786 <LinearLayout
787 android:layout_width="wrap_content"
788 android:layout_height="wrap_content"
789 android:layout_alignParentLeft="true"
790 android:layout_centerVertical="true"
791 android:orientation="vertical">
792
793 <TextView
794 android:layout_width="wrap_content"
795 android:layout_height="wrap_content"
796 android:text="@string/title_pref_quiet_hours_end_time"
797 android:textAppearance="?textAppearanceBodyMedium"/>
798
799 <TextView
800 android:id="@+id/quiet_hours_end"
801 android:layout_width="wrap_content"
802 android:layout_height="wrap_content"
803 android:text=""
804 android:textAppearance="?textAppearanceBodyMedium"/>
805 </LinearLayout>
806 </RelativeLayout>
807
808 <RelativeLayout
809 android:id="@+id/pgp_fingerprint_box"
810 android:layout_width="wrap_content"
811 android:layout_height="match_parent"
812 android:layout_marginTop="12dp">
813
814 <LinearLayout
815 android:layout_width="wrap_content"
816 android:layout_height="wrap_content"
817 android:layout_alignParentStart="true"
818 android:layout_centerVertical="true"
819 android:layout_toStartOf="@+id/action_delete_pgp"
820 android:orientation="vertical">
821
822 <TextView
823 android:id="@+id/pgp_fingerprint"
824 android:layout_width="wrap_content"
825 android:layout_height="wrap_content"
826 android:fontFamily="monospace"
827 android:textAppearance="?textAppearanceBodyMedium" />
828
829 <TextView
830 android:id="@+id/pgp_fingerprint_desc"
831 android:layout_width="wrap_content"
832 android:layout_height="wrap_content"
833 android:text="@string/openpgp_key_id"
834 android:textAppearance="?textAppearanceLabelMedium" />
835 </LinearLayout>
836
837 <ImageButton
838 android:id="@+id/action_delete_pgp"
839 android:layout_width="wrap_content"
840 android:layout_height="wrap_content"
841 android:layout_alignParentEnd="true"
842 android:layout_centerVertical="true"
843 android:background="?attr/selectableItemBackgroundBorderless"
844 android:contentDescription="@string/delete_pgp_key"
845 android:padding="@dimen/image_button_padding"
846 android:src="@drawable/ic_delete_24dp"
847 android:visibility="visible" />
848 </RelativeLayout>
849
850 <RelativeLayout
851 android:id="@+id/axolotl_fingerprint_box"
852 android:layout_width="wrap_content"
853 android:layout_height="match_parent"
854 android:layout_marginTop="12dp">
855
856 <LinearLayout
857 android:layout_width="wrap_content"
858 android:layout_height="wrap_content"
859 android:layout_alignParentStart="true"
860 android:layout_centerVertical="true"
861 android:layout_toStartOf="@+id/axolotl_actions"
862 android:orientation="vertical">
863
864 <TextView
865 android:id="@+id/axolotl_fingerprint"
866 android:layout_width="wrap_content"
867 android:layout_height="wrap_content"
868 android:fontFamily="monospace"
869 android:textAppearance="?textAppearanceBodyMedium" />
870
871 <TextView
872 android:id="@+id/own_fingerprint_desc"
873 android:layout_width="wrap_content"
874 android:layout_height="wrap_content"
875 android:textAppearance="?textAppearanceLabelMedium" />
876 </LinearLayout>
877
878 <LinearLayout
879 android:id="@+id/axolotl_actions"
880 android:layout_width="wrap_content"
881 android:layout_height="wrap_content"
882 android:layout_alignParentEnd="true"
883 android:layout_centerVertical="true"
884 android:orientation="vertical">
885
886 <ImageButton
887 android:id="@+id/show_qr_code_button"
888 android:layout_width="wrap_content"
889 android:layout_height="wrap_content"
890 android:background="?attr/selectableItemBackgroundBorderless"
891 android:contentDescription="@string/show_qr_code"
892 android:padding="@dimen/image_button_padding"
893 android:src="@drawable/ic_qr_code_24dp"
894 android:visibility="visible" />
895
896 <ImageButton
897 android:id="@+id/action_regenerate_axolotl_key"
898 android:layout_width="wrap_content"
899 android:layout_height="wrap_content"
900 android:background="?attr/selectableItemBackgroundBorderless"
901 android:contentDescription="@string/regenerate_omemo_key"
902 android:padding="@dimen/image_button_padding"
903 android:src="@drawable/ic_refresh_24dp"
904 android:visibility="gone" />
905
906 </LinearLayout>
907 </RelativeLayout>
908 </LinearLayout>
909 </com.google.android.material.card.MaterialCardView>
910
911 <com.google.android.material.card.MaterialCardView
912 android:id="@+id/other_device_keys_card"
913 android:layout_width="fill_parent"
914 android:layout_height="wrap_content"
915 android:layout_marginLeft="@dimen/activity_horizontal_margin"
916 android:layout_marginTop="@dimen/activity_vertical_margin"
917 android:layout_marginRight="@dimen/activity_horizontal_margin"
918 android:layout_marginBottom="@dimen/activity_vertical_margin"
919 android:visibility="gone"
920 tools:visibility="visible">
921
922 <LinearLayout
923 android:layout_width="match_parent"
924 android:layout_height="wrap_content"
925 android:orientation="vertical">
926
927 <LinearLayout
928 android:layout_width="match_parent"
929 android:layout_height="wrap_content"
930 android:orientation="vertical"
931 android:padding="@dimen/card_padding_list">
932
933 <TextView
934 android:id="@+id/other_device_keys_title"
935 android:layout_width="wrap_content"
936 android:layout_height="wrap_content"
937 android:layout_margin="@dimen/list_padding"
938 android:text="@string/other_devices"
939 android:textAppearance="?textAppearanceTitleLarge" />
940
941 <LinearLayout
942 android:id="@+id/other_device_keys"
943 android:layout_width="fill_parent"
944 android:layout_height="wrap_content"
945 android:orientation="vertical" />
946 </LinearLayout>
947
948 <LinearLayout
949 android:id="@+id/unverified_warning"
950 android:layout_width="match_parent"
951 android:layout_height="wrap_content"
952 android:paddingHorizontal="@dimen/card_padding_list">
953
954 <!-- Consider using a warning color here. if we do this then contact details activity has the same warning -->
955 <TextView
956 android:layout_width="wrap_content"
957 android:layout_height="wrap_content"
958 android:layout_marginHorizontal="@dimen/list_padding"
959 android:text="@string/unverified_devices"
960 android:textAppearance="?textAppearanceBodyMedium"
961 android:textColor="?colorOnSurfaceVariant" />
962 </LinearLayout>
963
964 <LinearLayout
965 android:layout_width="wrap_content"
966 android:layout_height="match_parent"
967 android:layout_marginTop="8dp"
968 android:orientation="horizontal">
969
970
971 <Button
972 android:id="@+id/scan_button"
973 style="@style/Widget.Material3.Button.TextButton"
974 android:layout_width="wrap_content"
975 android:layout_height="wrap_content"
976 android:minWidth="0dp"
977 android:paddingLeft="16dp"
978 android:paddingRight="16dp"
979 android:text="@string/scan_qr_code" />
980
981 <Button
982 android:id="@+id/clear_devices"
983 style="@style/Widget.Material3.Button.TextButton"
984 android:layout_width="wrap_content"
985 android:layout_height="wrap_content"
986 android:minWidth="0dp"
987 android:paddingLeft="16dp"
988 android:paddingRight="16dp"
989 android:text="@string/clear_other_devices" />
990 </LinearLayout>
991 </LinearLayout>
992
993 </com.google.android.material.card.MaterialCardView>
994 </LinearLayout>
995 </ScrollView>
996
997 <RelativeLayout
998 android:id="@+id/button_bar"
999 android:layout_width="wrap_content"
1000 android:layout_height="wrap_content"
1001 android:layout_alignParentStart="true"
1002 android:layout_alignParentEnd="true"
1003 android:layout_alignParentBottom="true"
1004 android:paddingHorizontal="16dp"
1005 android:paddingVertical="8dp">
1006
1007 <Button
1008 android:id="@+id/cancel_button"
1009 style="@style/Widget.Material3.Button.TextButton"
1010 android:layout_width="wrap_content"
1011 android:layout_height="wrap_content"
1012 android:layout_alignParentStart="true"
1013 android:layout_centerInParent="true"
1014 android:text="@string/cancel" />
1015
1016
1017 <Button
1018 android:id="@+id/save_button"
1019 android:layout_width="wrap_content"
1020 android:layout_height="wrap_content"
1021 android:layout_alignParentEnd="true"
1022 android:layout_centerInParent="true"
1023 android:enabled="false"
1024 android:text="@string/save" />
1025 </RelativeLayout>
1026
1027 </RelativeLayout>
1028</layout>