activity_edit_account.xml

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