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:paddingLeft="4dp"
248 android:textAppearance="?textAppearanceBodyMedium" />
249 </TableRow>
250
251 </TableLayout>
252
253 <TableLayout
254 android:id="@+id/server_info_more"
255 android:layout_width="match_parent"
256 android:layout_height="wrap_content"
257 android:shrinkColumns="0"
258 android:stretchColumns="1"
259 android:visibility="gone">
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:ellipsize="end"
269 android:singleLine="true"
270 android:text="@string/server_info_pep"
271 android:textAppearance="?textAppearanceBodyMedium" />
272
273 <TextView
274 android:id="@+id/server_info_pep"
275 android:layout_width="wrap_content"
276 android:layout_height="wrap_content"
277 android:layout_gravity="right"
278 android:paddingLeft="4dp"
279 android:textAppearance="?textAppearanceBodyMedium"
280 tools:ignore="RtlHardcoded" />
281 </TableRow>
282
283 <TableRow
284 android:layout_width="fill_parent"
285 android:layout_height="wrap_content">
286
287 <TextView
288 android:layout_width="wrap_content"
289 android:layout_height="wrap_content"
290 android:ellipsize="end"
291 android:singleLine="true"
292 android:text="@string/server_info_blocking"
293 android:textAppearance="?textAppearanceBodyMedium" />
294
295 <TextView
296 android:id="@+id/server_info_blocking"
297 android:layout_width="wrap_content"
298 android:layout_height="wrap_content"
299 android:layout_gravity="right"
300 android:paddingLeft="4dp"
301 android:textAppearance="?textAppearanceBodyMedium"
302 tools:ignore="RtlHardcoded" />
303 </TableRow>
304
305 <TableRow
306 android:layout_width="fill_parent"
307 android:layout_height="wrap_content">
308
309 <TextView
310 android:layout_width="wrap_content"
311 android:layout_height="wrap_content"
312 android:ellipsize="end"
313 android:singleLine="true"
314 android:text="@string/server_info_stream_management"
315 android:textAppearance="?textAppearanceBodyMedium" />
316
317 <TextView
318 android:id="@+id/server_info_sm"
319 android:layout_width="wrap_content"
320 android:layout_height="wrap_content"
321 android:layout_gravity="right"
322 android:paddingLeft="4dp"
323 android:textAppearance="?textAppearanceBodyMedium"
324 tools:ignore="RtlHardcoded" />
325 </TableRow>
326
327 <TableRow
328 android:layout_width="fill_parent"
329 android:layout_height="wrap_content">
330
331 <TextView
332 android:layout_width="wrap_content"
333 android:layout_height="wrap_content"
334 android:ellipsize="end"
335 android:singleLine="true"
336 android:text="@string/server_info_external_service_discovery"
337 android:textAppearance="?textAppearanceBodyMedium" />
338
339 <TextView
340 android:id="@+id/server_info_external_service"
341 android:layout_width="wrap_content"
342 android:layout_height="wrap_content"
343 android:layout_gravity="right"
344 android:paddingLeft="4dp"
345 android:textAppearance="?textAppearanceBodyMedium"
346 tools:ignore="RtlHardcoded" />
347 </TableRow>
348
349 <TableRow
350 android:layout_width="fill_parent"
351 android:layout_height="wrap_content">
352
353 <TextView
354 android:layout_width="wrap_content"
355 android:layout_height="wrap_content"
356 android:ellipsize="end"
357 android:singleLine="true"
358 android:text="@string/server_info_roster_version"
359 android:textAppearance="?textAppearanceBodyMedium" />
360
361 <TextView
362 android:id="@+id/server_info_roster_version"
363 android:layout_width="wrap_content"
364 android:layout_height="wrap_content"
365 android:layout_gravity="right"
366 android:paddingLeft="4dp"
367 android:textAppearance="?textAppearanceBodyMedium"
368 tools:ignore="RtlHardcoded" />
369 </TableRow>
370
371 <TableRow
372 android:layout_width="fill_parent"
373 android:layout_height="wrap_content">
374
375 <TextView
376 android:layout_width="wrap_content"
377 android:layout_height="wrap_content"
378 android:ellipsize="end"
379 android:singleLine="true"
380 android:text="@string/server_info_carbon_messages"
381 android:textAppearance="?textAppearanceBodyMedium" />
382
383 <TextView
384 android:id="@+id/server_info_carbons"
385 android:layout_width="wrap_content"
386 android:layout_height="wrap_content"
387 android:layout_gravity="right"
388 android:paddingLeft="4dp"
389 android:textAppearance="?textAppearanceBodyMedium"
390 tools:ignore="RtlHardcoded" />
391 </TableRow>
392
393 <TableRow
394 android:layout_width="fill_parent"
395 android:layout_height="wrap_content">
396
397 <TextView
398 android:layout_width="wrap_content"
399 android:layout_height="wrap_content"
400 android:ellipsize="end"
401 android:singleLine="true"
402 android:text="@string/server_info_mam"
403 android:textAppearance="?textAppearanceBodyMedium" />
404
405 <TextView
406 android:id="@+id/server_info_mam"
407 android:layout_width="wrap_content"
408 android:layout_height="wrap_content"
409 android:layout_gravity="right"
410 android:paddingLeft="4dp"
411 android:textAppearance="?textAppearanceBodyMedium"
412 tools:ignore="RtlHardcoded" />
413 </TableRow>
414
415 <TableRow
416 android:layout_width="fill_parent"
417 android:layout_height="wrap_content">
418
419 <TextView
420 android:layout_width="wrap_content"
421 android:layout_height="wrap_content"
422 android:ellipsize="end"
423 android:singleLine="true"
424 android:text="@string/server_info_csi"
425 android:textAppearance="?textAppearanceBodyMedium" />
426
427 <TextView
428 android:id="@+id/server_info_csi"
429 android:layout_width="wrap_content"
430 android:layout_height="wrap_content"
431 android:layout_gravity="right"
432 android:paddingLeft="4dp"
433 android:textAppearance="?textAppearanceBodyMedium"
434 tools:ignore="RtlHardcoded" />
435 </TableRow>
436
437 <TableRow
438 android:id="@+id/push_row"
439 android:layout_width="fill_parent"
440 android:layout_height="wrap_content">
441
442 <TextView
443 android:layout_width="wrap_content"
444 android:layout_height="wrap_content"
445 android:ellipsize="end"
446 android:singleLine="true"
447 android:text="@string/server_info_push"
448 android:textAppearance="?textAppearanceBodyMedium" />
449
450 <TextView
451 android:id="@+id/server_info_push"
452 android:layout_width="wrap_content"
453 android:layout_height="wrap_content"
454 android:layout_gravity="right"
455 android:paddingLeft="4dp"
456 android:textAppearance="?textAppearanceBodyMedium" />
457 </TableRow>
458
459 <TableRow
460 android:layout_width="fill_parent"
461 android:layout_height="wrap_content">
462
463 <TextView
464 android:id="@+id/server_info_http_upload_description"
465 android:layout_width="wrap_content"
466 android:layout_height="wrap_content"
467 android:ellipsize="end"
468 android:singleLine="true"
469 android:text="@string/server_info_http_upload"
470 android:textAppearance="?textAppearanceBodyMedium" />
471
472 <TextView
473 android:id="@+id/server_info_http_upload"
474 android:layout_width="wrap_content"
475 android:layout_height="wrap_content"
476 android:layout_gravity="right"
477 android:paddingLeft="4dp"
478 android:textAppearance="?textAppearanceBodyMedium" />
479 </TableRow>
480 </TableLayout>
481
482 <RelativeLayout
483 android:id="@+id/your_name_box"
484 android:layout_width="wrap_content"
485 android:layout_height="match_parent"
486 android:layout_marginTop="12dp">
487
488 <LinearLayout
489 android:layout_width="wrap_content"
490 android:layout_height="wrap_content"
491 android:layout_alignParentStart="true"
492 android:layout_centerVertical="true"
493 android:layout_toStartOf="@+id/action_edit_your_name"
494 android:orientation="vertical">
495
496 <TextView
497 android:id="@+id/your_name"
498 android:layout_width="wrap_content"
499 android:layout_height="wrap_content"
500 android:text="@string/no_name_set_instructions"
501 android:textAppearance="?textAppearanceBodyMedium" />
502
503 <TextView
504 android:id="@+id/your_name_desc"
505 android:layout_width="wrap_content"
506 android:layout_height="wrap_content"
507 android:text="@string/your_name"
508 android:textAppearance="?textAppearanceLabelMedium" />
509 </LinearLayout>
510
511 <ImageButton
512 android:id="@+id/action_edit_your_name"
513 android:layout_width="wrap_content"
514 android:layout_height="wrap_content"
515 android:layout_alignParentEnd="true"
516 android:layout_centerVertical="true"
517 android:background="?attr/selectableItemBackgroundBorderless"
518 android:contentDescription="@string/edit_nick"
519 android:padding="@dimen/image_button_padding"
520 android:src="@drawable/ic_edit_24dp"
521 android:visibility="visible" />
522 </RelativeLayout>
523
524 <RelativeLayout
525 android:id="@+id/pgp_fingerprint_box"
526 android:layout_width="wrap_content"
527 android:layout_height="match_parent"
528 android:layout_marginTop="12dp">
529
530 <LinearLayout
531 android:layout_width="wrap_content"
532 android:layout_height="wrap_content"
533 android:layout_alignParentStart="true"
534 android:layout_centerVertical="true"
535 android:layout_toStartOf="@+id/action_delete_pgp"
536 android:orientation="vertical">
537
538 <TextView
539 android:id="@+id/pgp_fingerprint"
540 android:layout_width="wrap_content"
541 android:layout_height="wrap_content"
542 android:fontFamily="monospace"
543 android:textAppearance="?textAppearanceBodyMedium" />
544
545 <TextView
546 android:id="@+id/pgp_fingerprint_desc"
547 android:layout_width="wrap_content"
548 android:layout_height="wrap_content"
549 android:text="@string/openpgp_key_id"
550 android:textAppearance="?textAppearanceLabelMedium" />
551 </LinearLayout>
552
553 <ImageButton
554 android:id="@+id/action_delete_pgp"
555 android:layout_width="wrap_content"
556 android:layout_height="wrap_content"
557 android:layout_alignParentEnd="true"
558 android:layout_centerVertical="true"
559 android:background="?attr/selectableItemBackgroundBorderless"
560 android:contentDescription="@string/delete_pgp_key"
561 android:padding="@dimen/image_button_padding"
562 android:src="@drawable/ic_delete_24dp"
563 android:visibility="visible" />
564 </RelativeLayout>
565
566 <RelativeLayout
567 android:id="@+id/axolotl_fingerprint_box"
568 android:layout_width="wrap_content"
569 android:layout_height="match_parent"
570 android:layout_marginTop="12dp">
571
572 <LinearLayout
573 android:layout_width="wrap_content"
574 android:layout_height="wrap_content"
575 android:layout_alignParentStart="true"
576 android:layout_centerVertical="true"
577 android:layout_toStartOf="@+id/axolotl_actions"
578 android:orientation="vertical">
579
580 <TextView
581 android:id="@+id/axolotl_fingerprint"
582 android:layout_width="wrap_content"
583 android:layout_height="wrap_content"
584 android:fontFamily="monospace"
585 android:textAppearance="?textAppearanceBodyMedium" />
586
587 <TextView
588 android:id="@+id/own_fingerprint_desc"
589 android:layout_width="wrap_content"
590 android:layout_height="wrap_content"
591 android:textAppearance="?textAppearanceLabelMedium" />
592 </LinearLayout>
593
594 <LinearLayout
595 android:id="@+id/axolotl_actions"
596 android:layout_width="wrap_content"
597 android:layout_height="wrap_content"
598 android:layout_alignParentEnd="true"
599 android:layout_centerVertical="true"
600 android:orientation="vertical">
601
602 <ImageButton
603 android:id="@+id/show_qr_code_button"
604 android:layout_width="wrap_content"
605 android:layout_height="wrap_content"
606 android:background="?attr/selectableItemBackgroundBorderless"
607 android:contentDescription="@string/show_qr_code"
608 android:padding="@dimen/image_button_padding"
609 android:src="@drawable/ic_qr_code_24dp"
610 android:visibility="visible" />
611
612 <ImageButton
613 android:id="@+id/action_regenerate_axolotl_key"
614 android:layout_width="wrap_content"
615 android:layout_height="wrap_content"
616 android:background="?attr/selectableItemBackgroundBorderless"
617 android:contentDescription="@string/regenerate_omemo_key"
618 android:padding="@dimen/image_button_padding"
619 android:src="@drawable/ic_refresh_24dp"
620 android:visibility="gone" />
621
622 </LinearLayout>
623 </RelativeLayout>
624 </LinearLayout>
625 </com.google.android.material.card.MaterialCardView>
626
627 <com.google.android.material.card.MaterialCardView
628 android:id="@+id/other_device_keys_card"
629 android:layout_width="fill_parent"
630 android:layout_height="wrap_content"
631 android:layout_marginLeft="@dimen/activity_horizontal_margin"
632 android:layout_marginTop="@dimen/activity_vertical_margin"
633 android:layout_marginRight="@dimen/activity_horizontal_margin"
634 android:layout_marginBottom="@dimen/activity_vertical_margin"
635 android:visibility="gone"
636 tools:visibility="visible">
637
638 <LinearLayout
639 android:layout_width="match_parent"
640 android:layout_height="wrap_content"
641 android:orientation="vertical">
642
643 <LinearLayout
644 android:layout_width="match_parent"
645 android:layout_height="wrap_content"
646 android:orientation="vertical"
647 android:padding="@dimen/card_padding_list">
648
649 <TextView
650 android:id="@+id/other_device_keys_title"
651 android:layout_width="wrap_content"
652 android:layout_height="wrap_content"
653 android:layout_margin="@dimen/list_padding"
654 android:text="@string/other_devices"
655 android:textAppearance="?textAppearanceTitleLarge" />
656
657 <LinearLayout
658 android:id="@+id/other_device_keys"
659 android:layout_width="fill_parent"
660 android:layout_height="wrap_content"
661 android:orientation="vertical" />
662 </LinearLayout>
663
664 <LinearLayout
665 android:id="@+id/unverified_warning"
666 android:layout_width="match_parent"
667 android:layout_height="wrap_content"
668 android:paddingHorizontal="@dimen/card_padding_list">
669
670 <!-- Consider using a warning color here. if we do this then contact details activity has the same warning -->
671 <TextView
672 android:layout_width="wrap_content"
673 android:layout_height="wrap_content"
674 android:layout_marginHorizontal="@dimen/list_padding"
675 android:text="@string/unverified_devices"
676 android:textAppearance="?textAppearanceBodyMedium"
677 android:textColor="?colorOnSurfaceVariant" />
678 </LinearLayout>
679
680 <LinearLayout
681 android:layout_width="wrap_content"
682 android:layout_height="match_parent"
683 android:layout_marginTop="8dp"
684 android:orientation="horizontal">
685
686
687 <Button
688 android:id="@+id/scan_button"
689 style="@style/Widget.Material3.Button.TextButton"
690 android:layout_width="wrap_content"
691 android:layout_height="wrap_content"
692 android:minWidth="0dp"
693 android:paddingLeft="16dp"
694 android:paddingRight="16dp"
695 android:text="@string/scan_qr_code" />
696
697 <Button
698 android:id="@+id/clear_devices"
699 style="@style/Widget.Material3.Button.TextButton"
700 android:layout_width="wrap_content"
701 android:layout_height="wrap_content"
702 android:minWidth="0dp"
703 android:paddingLeft="16dp"
704 android:paddingRight="16dp"
705 android:text="@string/clear_other_devices" />
706 </LinearLayout>
707 </LinearLayout>
708
709 </com.google.android.material.card.MaterialCardView>
710 </LinearLayout>
711 </ScrollView>
712
713 <RelativeLayout
714 android:id="@+id/button_bar"
715 android:layout_width="wrap_content"
716 android:layout_height="wrap_content"
717 android:layout_alignParentStart="true"
718 android:layout_alignParentEnd="true"
719 android:layout_alignParentBottom="true"
720 android:paddingHorizontal="16dp"
721 android:paddingVertical="8dp">
722
723 <Button
724 android:id="@+id/cancel_button"
725 style="@style/Widget.Material3.Button.TextButton"
726 android:layout_width="wrap_content"
727 android:layout_height="wrap_content"
728 android:layout_alignParentStart="true"
729 android:layout_centerInParent="true"
730 android:text="@string/cancel" />
731
732
733 <Button
734 android:id="@+id/save_button"
735 android:layout_width="wrap_content"
736 android:layout_height="wrap_content"
737 android:layout_alignParentEnd="true"
738 android:layout_centerInParent="true"
739 android:enabled="false"
740 android:text="@string/save" />
741 </RelativeLayout>
742
743 </RelativeLayout>
744</layout>