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