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