activity_edit_account.xml

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