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