]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/blob - res/layout/domain_settings_fragment.xml
Add an option to delete all domain settings at once. https://redmine.stoutner.com...
[PrivacyBrowserAndroid.git] / res / layout / domain_settings_fragment.xml
1 <?xml version="1.0" encoding="utf-8"?>
2
3 <!--
4   Copyright © 2017-2022 Soren Stoutner <soren@stoutner.com>.
5
6   This file is part of Privacy Browser Android <https://www.stoutner.com/privacy-browser-android>.
7
8   Privacy Browser Android is free software: you can redistribute it and/or modify
9   it under the terms of the GNU General Public License as published by
10   the Free Software Foundation, either version 3 of the License, or
11   (at your option) any later version.
12
13   Privacy Browser Android is distributed in the hope that it will be useful,
14   but WITHOUT ANY WARRANTY; without even the implied warranty of
15   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16   GNU General Public License for more details.
17
18   You should have received a copy of the GNU General Public License
19   along with Privacy Browser Android.  If not, see <http://www.gnu.org/licenses/>. -->
20
21 <ScrollView android:id="@+id/domain_settings_scrollview"
22     xmlns:android="http://schemas.android.com/apk/res/android"
23     xmlns:tools="http://schemas.android.com/tools"
24     android:layout_height="wrap_content"
25     android:layout_width="match_parent"
26     android:focusable="true"
27     android:focusableInTouchMode="true"
28     android:descendantFocusability="beforeDescendants"
29     xmlns:app="http://schemas.android.com/apk/res-auto">
30
31     <LinearLayout
32         android:layout_height="wrap_content"
33         android:layout_width="match_parent"
34         android:layout_margin="12dp"
35         android:orientation="vertical"
36         android:divider="?android:attr/dividerVertical" >
37
38         <!-- Domain name. -->
39         <LinearLayout
40             android:layout_height="wrap_content"
41             android:layout_width="match_parent"
42             android:orientation="vertical" >
43
44             <LinearLayout
45                 android:layout_height="wrap_content"
46                 android:layout_width="match_parent"
47                 android:orientation="horizontal" >
48
49                 <ImageView
50                     android:layout_height="wrap_content"
51                     android:layout_width="wrap_content"
52                     android:layout_marginEnd="10dp"
53                     android:layout_marginBottom="12dp"
54                     android:layout_gravity="bottom"
55                     android:src="@drawable/domains"
56                     app:tint="?attr/domainSettingsIconTintColor"
57                     tools:ignore="contentDescription" />
58
59                 <!-- `TextInputLayout` makes the `android:hint` float above the `EditText`. -->
60                 <com.google.android.material.textfield.TextInputLayout
61                     android:layout_height="wrap_content"
62                     android:layout_width="match_parent"
63                     android:layout_marginStart="6dp" >
64
65                     <!-- `android:inputType="textUri"` disables spell check in the `EditText`. -->
66                     <com.google.android.material.textfield.TextInputEditText
67                         android:id="@+id/domain_settings_name_edittext"
68                         android:layout_width="match_parent"
69                         android:layout_height="wrap_content"
70                         android:hint="@string/domain_name"
71                         android:inputType="textUri" />
72                 </com.google.android.material.textfield.TextInputLayout>
73             </LinearLayout>
74
75             <TextView
76                 android:layout_height="wrap_content"
77                 android:layout_width="match_parent"
78                 android:text="@string/domain_name_instructions"
79                 android:textSize="12sp"
80                 android:layout_marginStart="43dp"
81                 android:layout_marginBottom="14dp" />
82         </LinearLayout>
83
84         <!-- JavaScript. -->
85         <LinearLayout
86             android:layout_height="wrap_content"
87             android:layout_width="match_parent"
88             android:orientation="horizontal" >
89
90             <ImageView
91                 android:id="@+id/javascript_imageview"
92                 android:layout_height="wrap_content"
93                 android:layout_width="wrap_content"
94                 android:layout_marginTop="1dp"
95                 android:layout_marginEnd="10dp"
96                 android:layout_gravity="center_vertical"
97                 tools:ignore="contentDescription" />
98
99             <androidx.appcompat.widget.SwitchCompat
100                 android:id="@+id/javascript_switch"
101                 android:layout_height="wrap_content"
102                 android:layout_width="match_parent"
103                 android:layout_marginStart="8dp"
104                 android:layout_marginTop="14dp"
105                 android:layout_marginBottom="14dp"
106                 android:text="@string/javascript"
107                 android:textColor="?android:textColorPrimary"
108                 android:textSize="18sp" />
109         </LinearLayout>
110
111         <!-- Cookies. -->
112         <LinearLayout
113             android:layout_height="wrap_content"
114             android:layout_width="match_parent"
115             android:orientation="horizontal" >
116
117             <ImageView
118                 android:id="@+id/cookies_imageview"
119                 android:layout_height="wrap_content"
120                 android:layout_width="wrap_content"
121                 android:layout_marginTop="1dp"
122                 android:layout_marginEnd="10dp"
123                 android:layout_gravity="center_vertical"
124                 tools:ignore="contentDescription" />
125
126             <androidx.appcompat.widget.SwitchCompat
127                 android:id="@+id/cookies_switch"
128                 android:layout_height="wrap_content"
129                 android:layout_width="match_parent"
130                 android:layout_marginStart="8dp"
131                 android:layout_marginTop="14dp"
132                 android:layout_marginBottom="14dp"
133                 android:text="@string/cookies"
134                 android:textColor="?android:textColorPrimary"
135                 android:textSize="18sp" />
136         </LinearLayout>
137
138         <!-- DOM Storage. -->
139         <LinearLayout
140             android:layout_height="wrap_content"
141             android:layout_width="match_parent"
142             android:orientation="horizontal" >
143
144             <ImageView
145                 android:id="@+id/dom_storage_imageview"
146                 android:layout_height="wrap_content"
147                 android:layout_width="wrap_content"
148                 android:layout_marginTop="1dp"
149                 android:layout_marginEnd="10dp"
150                 android:layout_gravity="center_vertical"
151                 tools:ignore="contentDescription" />
152
153             <androidx.appcompat.widget.SwitchCompat
154                 android:id="@+id/dom_storage_switch"
155                 android:layout_height="wrap_content"
156                 android:layout_width="match_parent"
157                 android:layout_marginStart="8dp"
158                 android:layout_marginTop="14dp"
159                 android:layout_marginBottom="14dp"
160                 android:text="@string/dom_storage_preference"
161                 android:textColor="?android:textColorPrimary"
162                 android:textSize="18sp" />
163         </LinearLayout>
164
165         <!-- Form Data. -->
166         <LinearLayout
167             android:layout_height="wrap_content"
168             android:layout_width="match_parent"
169             android:orientation="horizontal" >
170
171             <ImageView
172                 android:id="@+id/form_data_imageview"
173                 android:layout_height="wrap_content"
174                 android:layout_width="wrap_content"
175                 android:layout_marginTop="1dp"
176                 android:layout_marginEnd="10dp"
177                 android:layout_gravity="center_vertical"
178                 tools:ignore="contentDescription" />
179
180             <androidx.appcompat.widget.SwitchCompat
181                 android:id="@+id/form_data_switch"
182                 android:layout_height="wrap_content"
183                 android:layout_width="match_parent"
184                 android:layout_marginStart="8dp"
185                 android:layout_marginTop="14dp"
186                 android:layout_marginBottom="14dp"
187                 android:text="@string/form_data"
188                 android:textColor="?android:textColorPrimary"
189                 android:textSize="18sp" />
190         </LinearLayout>
191
192         <!-- EasyList. -->
193         <LinearLayout
194             android:layout_height="wrap_content"
195             android:layout_width="match_parent"
196             android:orientation="horizontal" >
197
198             <ImageView
199                 android:id="@+id/easylist_imageview"
200                 android:layout_height="wrap_content"
201                 android:layout_width="wrap_content"
202                 android:layout_marginTop="1dp"
203                 android:layout_marginEnd="10dp"
204                 android:layout_gravity="center_vertical"
205                 tools:ignore="contentDescription" />
206
207             <androidx.appcompat.widget.SwitchCompat
208                 android:id="@+id/easylist_switch"
209                 android:layout_height="wrap_content"
210                 android:layout_width="match_parent"
211                 android:layout_marginStart="8dp"
212                 android:layout_marginTop="14dp"
213                 android:layout_marginBottom="14dp"
214                 android:text="@string/easylist"
215                 android:textColor="?android:textColorPrimary"
216                 android:textSize="18sp" />
217         </LinearLayout>
218
219         <!-- EasyPrivacy. -->
220         <LinearLayout
221             android:layout_height="wrap_content"
222             android:layout_width="match_parent"
223             android:orientation="horizontal" >
224
225             <ImageView
226                 android:id="@+id/easyprivacy_imageview"
227                 android:layout_height="wrap_content"
228                 android:layout_width="wrap_content"
229                 android:layout_marginTop="1dp"
230                 android:layout_marginEnd="10dp"
231                 android:layout_gravity="center_vertical"
232                 tools:ignore="contentDescription" />
233
234             <androidx.appcompat.widget.SwitchCompat
235                 android:id="@+id/easyprivacy_switch"
236                 android:layout_height="wrap_content"
237                 android:layout_width="match_parent"
238                 android:layout_marginStart="8dp"
239                 android:layout_marginTop="14dp"
240                 android:layout_marginBottom="14dp"
241                 android:text="@string/easyprivacy"
242                 android:textColor="?android:textColorPrimary"
243                 android:textSize="18sp" />
244         </LinearLayout>
245
246         <!-- Fanboy's Annoyance List. -->
247         <LinearLayout
248             android:layout_height="wrap_content"
249             android:layout_width="match_parent"
250             android:orientation="horizontal" >
251
252             <ImageView
253                 android:id="@+id/fanboys_annoyance_list_imageview"
254                 android:layout_height="wrap_content"
255                 android:layout_width="wrap_content"
256                 android:layout_marginTop="1dp"
257                 android:layout_marginEnd="10dp"
258                 android:layout_gravity="center_vertical"
259                 tools:ignore="contentDescription" />
260
261             <androidx.appcompat.widget.SwitchCompat
262                 android:id="@+id/fanboys_annoyance_list_switch"
263                 android:layout_height="wrap_content"
264                 android:layout_width="match_parent"
265                 android:layout_marginStart="8dp"
266                 android:layout_marginTop="14dp"
267                 android:layout_marginBottom="14dp"
268                 android:text="@string/fanboys_annoyance_list"
269                 android:textColor="?android:textColorPrimary"
270                 android:textSize="18sp" />
271         </LinearLayout>
272
273         <!-- Fanboy's Social Blocking List. -->
274         <LinearLayout
275             android:layout_height="wrap_content"
276             android:layout_width="match_parent"
277             android:orientation="horizontal" >
278
279             <ImageView
280                 android:id="@+id/fanboys_social_blocking_list_imageview"
281                 android:layout_height="wrap_content"
282                 android:layout_width="wrap_content"
283                 android:layout_marginTop="1dp"
284                 android:layout_marginEnd="10dp"
285                 android:layout_gravity="center_vertical"
286                 tools:ignore="contentDescription" />
287
288             <androidx.appcompat.widget.SwitchCompat
289                 android:id="@+id/fanboys_social_blocking_list_switch"
290                 android:layout_height="wrap_content"
291                 android:layout_width="match_parent"
292                 android:layout_marginStart="8dp"
293                 android:layout_marginTop="14dp"
294                 android:layout_marginBottom="14dp"
295                 android:text="@string/fanboys_social_blocking_list"
296                 android:textColor="?android:textColorPrimary"
297                 android:textSize="18sp" />
298         </LinearLayout>
299
300         <!-- UltraList. -->
301         <LinearLayout
302             android:layout_height="wrap_content"
303             android:layout_width="match_parent"
304             android:orientation="horizontal" >
305
306             <ImageView
307                 android:id="@+id/ultralist_imageview"
308                 android:layout_height="wrap_content"
309                 android:layout_width="wrap_content"
310                 android:layout_marginTop="1dp"
311                 android:layout_marginEnd="10dp"
312                 android:layout_gravity="center_vertical"
313                 tools:ignore="contentDescription" />
314
315             <androidx.appcompat.widget.SwitchCompat
316                 android:id="@+id/ultralist_switch"
317                 android:layout_height="wrap_content"
318                 android:layout_width="match_parent"
319                 android:layout_marginStart="8dp"
320                 android:layout_marginTop="14dp"
321                 android:layout_marginBottom="14dp"
322                 android:text="@string/ultralist"
323                 android:textColor="?android:textColorPrimary"
324                 android:textSize="18sp" />
325         </LinearLayout>
326
327         <!-- UltraPrivacy. -->
328         <LinearLayout
329             android:layout_height="wrap_content"
330             android:layout_width="match_parent"
331             android:orientation="horizontal" >
332
333             <ImageView
334                 android:id="@+id/ultraprivacy_imageview"
335                 android:layout_height="wrap_content"
336                 android:layout_width="wrap_content"
337                 android:layout_marginTop="1dp"
338                 android:layout_marginEnd="10dp"
339                 android:layout_gravity="center_vertical"
340                 tools:ignore="contentDescription" />
341
342             <androidx.appcompat.widget.SwitchCompat
343                 android:id="@+id/ultraprivacy_switch"
344                 android:layout_height="wrap_content"
345                 android:layout_width="match_parent"
346                 android:layout_marginStart="8dp"
347                 android:layout_marginTop="14dp"
348                 android:layout_marginBottom="14dp"
349                 android:text="@string/ultraprivacy"
350                 android:textColor="?android:textColorPrimary"
351                 android:textSize="18sp" />
352         </LinearLayout>
353
354         <!-- Block All Third Party Requests. -->
355         <LinearLayout
356             android:layout_height="wrap_content"
357             android:layout_width="match_parent"
358             android:orientation="horizontal" >
359
360             <ImageView
361                 android:id="@+id/block_all_third_party_requests_imageview"
362                 android:layout_height="wrap_content"
363                 android:layout_width="wrap_content"
364                 android:layout_marginTop="1dp"
365                 android:layout_marginEnd="10dp"
366                 android:layout_gravity="center_vertical"
367                 tools:ignore="contentDescription" />
368
369             <androidx.appcompat.widget.SwitchCompat
370                 android:id="@+id/block_all_third_party_requests_switch"
371                 android:layout_height="wrap_content"
372                 android:layout_width="match_parent"
373                 android:layout_marginStart="8dp"
374                 android:layout_marginTop="14dp"
375                 android:layout_marginBottom="14dp"
376                 android:text="@string/block_all_third_party_requests"
377                 android:textColor="?android:textColorPrimary"
378                 android:textSize="18sp" />
379         </LinearLayout>
380
381         <!-- User Agent. -->
382         <LinearLayout
383             android:layout_height="wrap_content"
384             android:layout_width="match_parent"
385             android:orientation="vertical"
386             android:layout_marginTop="14dp"
387             android:layout_marginBottom="14dp" >
388
389             <LinearLayout
390                 android:layout_height="wrap_content"
391                 android:layout_width="match_parent"
392                 android:orientation="horizontal" >
393
394                 <ImageView
395                     android:layout_height="wrap_content"
396                     android:layout_width="wrap_content"
397                     android:layout_marginTop="1dp"
398                     android:layout_marginEnd="10dp"
399                     android:layout_gravity="center_vertical"
400                     android:src="@drawable/user_agent"
401                     app:tint="?attr/domainSettingsIconTintColor"
402                     android:contentDescription="@string/user_agent" />
403
404                 <Spinner
405                     android:id="@+id/user_agent_spinner"
406                     android:layout_height="wrap_content"
407                     android:layout_width="match_parent" />
408             </LinearLayout>
409
410             <TextView
411                 android:id="@+id/user_agent_textview"
412                 android:layout_height="match_parent"
413                 android:layout_width="match_parent"
414                 android:layout_marginStart="45dp"
415                 android:layout_marginEnd="36dp"
416                 android:textSize="13sp" />
417
418             <EditText
419                 android:id="@+id/custom_user_agent_edittext"
420                 android:layout_height="wrap_content"
421                 android:layout_width="match_parent"
422                 android:layout_marginStart="40dp"
423                 android:layout_marginEnd="60dp"
424                 android:inputType="textUri"
425                 android:hint="@string/custom_user_agent"
426                 android:importantForAutofill="no" />
427         </LinearLayout>
428
429         <!-- Font Size. -->
430         <LinearLayout
431             android:layout_height="wrap_content"
432             android:layout_width="match_parent"
433             android:orientation="vertical"
434             android:layout_marginTop="14dp"
435             android:layout_marginBottom="14dp" >
436
437             <LinearLayout
438                 android:layout_height="wrap_content"
439                 android:layout_width="match_parent"
440                 android:orientation="horizontal" >
441
442                 <ImageView
443                     android:layout_height="wrap_content"
444                     android:layout_width="wrap_content"
445                     android:layout_marginTop="1dp"
446                     android:layout_marginEnd="10dp"
447                     android:layout_gravity="center_vertical"
448                     android:src="@drawable/font_size"
449                     app:tint="?attr/domainSettingsIconTintColor"
450                     android:contentDescription="@string/font_size" />
451
452                 <Spinner
453                     android:id="@+id/font_size_spinner"
454                     android:layout_height="wrap_content"
455                     android:layout_width="match_parent" />
456             </LinearLayout>
457
458             <TextView
459                 android:id="@+id/default_font_size_textview"
460                 android:layout_height="match_parent"
461                 android:layout_width="match_parent"
462                 android:layout_marginStart="45dp"
463                 android:layout_marginEnd="36dp"
464                 android:textSize="13sp" />
465
466             <EditText
467                 android:id="@+id/custom_font_size_edittext"
468                 android:layout_height="wrap_content"
469                 android:layout_width="match_parent"
470                 android:layout_marginStart="40dp"
471                 android:layout_marginEnd="60dp"
472                 android:inputType="number"
473                 android:hint="@string/font_size"
474                 android:importantForAutofill="no" />
475         </LinearLayout>
476
477         <!-- Swipe to Refresh. -->
478         <LinearLayout
479             android:layout_height="wrap_content"
480             android:layout_width="match_parent"
481             android:orientation="vertical"
482             android:layout_marginTop="14dp"
483             android:layout_marginBottom="14dp" >
484
485             <LinearLayout
486                 android:layout_height="wrap_content"
487                 android:layout_width="match_parent"
488                 android:orientation="horizontal" >
489
490                 <ImageView
491                     android:id="@+id/swipe_to_refresh_imageview"
492                     android:layout_height="wrap_content"
493                     android:layout_width="wrap_content"
494                     android:layout_marginTop="1dp"
495                     android:layout_marginEnd="10dp"
496                     android:layout_gravity="center_vertical"
497                     android:contentDescription="@string/swipe_to_refresh" />
498
499                 <Spinner
500                     android:id="@+id/swipe_to_refresh_spinner"
501                     android:layout_height="wrap_content"
502                     android:layout_width="match_parent" />
503             </LinearLayout>
504
505             <TextView
506                 android:id="@+id/swipe_to_refresh_textview"
507                 android:layout_height="match_parent"
508                 android:layout_width="match_parent"
509                 android:layout_marginStart="45dp"
510                 android:layout_marginEnd="36dp"
511                 android:textSize="13sp" />
512         </LinearLayout>
513
514         <!-- WebView Theme. -->
515         <LinearLayout
516             android:id="@+id/webview_theme_linearlayout"
517             android:layout_height="wrap_content"
518             android:layout_width="match_parent"
519             android:orientation="vertical"
520             android:layout_marginTop="14dp"
521             android:layout_marginBottom="14dp" >
522
523             <LinearLayout
524                 android:layout_height="wrap_content"
525                 android:layout_width="match_parent"
526                 android:orientation="horizontal" >
527
528                 <ImageView
529                     android:id="@+id/webview_theme_imageview"
530                     android:layout_height="wrap_content"
531                     android:layout_width="wrap_content"
532                     android:layout_marginTop="1dp"
533                     android:layout_marginEnd="10dp"
534                     android:layout_gravity="center_vertical"
535                     android:contentDescription="@string/webview_theme" />
536
537                 <Spinner
538                     android:id="@+id/webview_theme_spinner"
539                     android:layout_height="wrap_content"
540                     android:layout_width="match_parent" />
541             </LinearLayout>
542
543             <TextView
544                 android:id="@+id/webview_theme_textview"
545                 android:layout_height="match_parent"
546                 android:layout_width="match_parent"
547                 android:layout_marginStart="45dp"
548                 android:layout_marginEnd="36dp"
549                 android:textSize="13sp" />
550         </LinearLayout>
551
552         <!-- Wide Viewport. -->
553         <LinearLayout
554             android:layout_height="wrap_content"
555             android:layout_width="match_parent"
556             android:orientation="vertical"
557             android:layout_marginTop="14dp"
558             android:layout_marginBottom="14dp" >
559
560             <LinearLayout
561                 android:layout_height="wrap_content"
562                 android:layout_width="match_parent"
563                 android:orientation="horizontal" >
564
565                 <ImageView
566                     android:id="@+id/wide_viewport_imageview"
567                     android:layout_height="wrap_content"
568                     android:layout_width="wrap_content"
569                     android:layout_marginTop="1dp"
570                     android:layout_marginEnd="10dp"
571                     android:layout_gravity="center_vertical"
572                     android:contentDescription="@string/wide_viewport" />
573
574                 <Spinner
575                     android:id="@+id/wide_viewport_spinner"
576                     android:layout_height="wrap_content"
577                     android:layout_width="match_parent" />
578             </LinearLayout>
579
580             <TextView
581                 android:id="@+id/wide_viewport_textview"
582                 android:layout_height="match_parent"
583                 android:layout_width="match_parent"
584                 android:layout_marginStart="45dp"
585                 android:layout_marginEnd="36dp"
586                 android:textSize="13sp" />
587         </LinearLayout>
588
589         <!-- Display Images. -->
590         <LinearLayout
591             android:layout_height="wrap_content"
592             android:layout_width="match_parent"
593             android:orientation="vertical"
594             android:layout_marginTop="14dp"
595             android:layout_marginBottom="14dp" >
596
597             <LinearLayout
598                 android:layout_height="wrap_content"
599                 android:layout_width="match_parent"
600                 android:orientation="horizontal" >
601
602                 <ImageView
603                     android:id="@+id/display_webpage_images_imageview"
604                     android:layout_height="wrap_content"
605                     android:layout_width="wrap_content"
606                     android:layout_marginTop="1dp"
607                     android:layout_marginEnd="10dp"
608                     android:layout_gravity="center_vertical"
609                     android:contentDescription="@string/display_webpage_images" />
610
611                 <Spinner
612                     android:id="@+id/display_webpage_images_spinner"
613                     android:layout_height="wrap_content"
614                     android:layout_width="match_parent" />
615             </LinearLayout>
616
617             <TextView
618                 android:id="@+id/display_webpage_images_textview"
619                 android:layout_height="match_parent"
620                 android:layout_width="match_parent"
621                 android:layout_marginStart="45dp"
622                 android:layout_marginEnd="36dp"
623                 android:textSize="13sp" />
624         </LinearLayout>
625
626         <!-- Pinned SSL Certificate -->
627         <LinearLayout
628             android:layout_height="wrap_content"
629             android:layout_width="match_parent"
630             android:orientation="vertical"
631             android:layout_marginTop="18dp"
632             android:layout_marginBottom="18dp" >
633
634             <!-- Switch -->
635             <LinearLayout
636                 android:layout_height="wrap_content"
637                 android:layout_width="match_parent"
638                 android:orientation="horizontal" >
639
640                 <ImageView
641                     android:id="@+id/pinned_ssl_certificate_imageview"
642                     android:layout_height="wrap_content"
643                     android:layout_width="wrap_content"
644                     android:layout_marginTop="1dp"
645                     android:layout_marginEnd="10dp"
646                     android:layout_gravity="center_vertical"
647                     tools:ignore="contentDescription" />
648
649                 <androidx.appcompat.widget.SwitchCompat
650                     android:id="@+id/pinned_ssl_certificate_switch"
651                     android:layout_height="wrap_content"
652                     android:layout_width="match_parent"
653                     android:layout_marginStart="8dp"
654                     android:text="@string/pinned_ssl_certificate"
655                     android:textColor="?android:textColorPrimary"
656                     android:textSize="18sp"
657                     tools:ignore="TooManyViews" />
658             </LinearLayout>
659
660             <!-- Saved Certificate -->
661             <androidx.cardview.widget.CardView
662                 android:id="@+id/saved_ssl_certificate_cardview"
663                 android:layout_height="wrap_content"
664                 android:layout_width="match_parent"
665                 android:layout_marginTop="10dp"
666                 android:layout_marginStart="10dp"
667                 android:layout_marginEnd="10dp" >
668
669                 <LinearLayout
670                     android:id="@+id/saved_ssl_certificate_linearlayout"
671                     android:layout_height="wrap_content"
672                     android:layout_width="match_parent"
673                     android:orientation="vertical"
674                     android:padding="10dp" >
675
676                     <RadioButton
677                         android:id="@+id/saved_ssl_certificate_radiobutton"
678                         android:layout_height="wrap_content"
679                         android:layout_width="match_parent"
680                         android:text="@string/saved_ssl_certificate"
681                         android:textSize="17sp"
682                         android:textAllCaps="true"
683                         android:textStyle="bold"
684                         android:textColor="?android:textColorPrimary" />
685
686                     <LinearLayout
687                         android:layout_height="wrap_content"
688                         android:layout_width="match_parent"
689                         android:layout_marginStart="32dp"
690                         android:orientation="vertical" >
691
692                         <!-- Saved Certificate Issued To. -->
693                         <TextView
694                             android:layout_height="wrap_content"
695                             android:layout_width="match_parent"
696                             android:text="@string/issued_to"
697                             android:textAllCaps="true"
698                             android:textStyle="bold"
699                             android:textColor="?attr/blueTitleTextColor" />
700
701                         <TextView
702                             android:id="@+id/saved_ssl_certificate_issued_to_cname"
703                             android:layout_height="wrap_content"
704                             android:layout_width="match_parent" />
705
706                         <TextView
707                             android:id="@+id/saved_ssl_certificate_issued_to_oname"
708                             android:layout_height="wrap_content"
709                             android:layout_width="match_parent" />
710
711                         <TextView
712                             android:id="@+id/saved_ssl_certificate_issued_to_uname"
713                             android:layout_height="wrap_content"
714                             android:layout_width="match_parent"/>
715
716                         <!-- Saved Certificate Issued By. -->
717                         <TextView
718                             android:layout_height="wrap_content"
719                             android:layout_width="match_parent"
720                             android:layout_marginTop="15dp"
721                             android:text="@string/issued_by"
722                             android:textAllCaps="true"
723                             android:textStyle="bold"
724                             android:textColor="?attr/blueTitleTextColor"/>
725
726                         <TextView
727                             android:id="@+id/saved_ssl_certificate_issued_by_cname"
728                             android:layout_height="wrap_content"
729                             android:layout_width="match_parent" />
730
731                         <TextView
732                             android:id="@+id/saved_ssl_certificate_issued_by_oname"
733                             android:layout_height="wrap_content"
734                             android:layout_width="match_parent" />
735
736                         <TextView
737                             android:id="@+id/saved_ssl_certificate_issued_by_uname"
738                             android:layout_height="wrap_content"
739                             android:layout_width="match_parent" />
740
741                         <!-- Saved Certificate Valid Dates. -->
742                         <TextView
743                             android:layout_height="wrap_content"
744                             android:layout_width="match_parent"
745                             android:layout_marginTop="15dp"
746                             android:text="@string/valid_dates"
747                             android:textAllCaps="true"
748                             android:textStyle="bold"
749                             android:textColor="?attr/blueTitleTextColor"/>
750
751                         <TextView
752                             android:id="@+id/saved_ssl_certificate_start_date"
753                             android:layout_height="wrap_content"
754                             android:layout_width="match_parent" />
755
756                         <TextView
757                             android:id="@+id/saved_ssl_certificate_end_date"
758                             android:layout_height="wrap_content"
759                             android:layout_width="match_parent" />
760                     </LinearLayout>
761                 </LinearLayout>
762             </androidx.cardview.widget.CardView>
763
764             <!-- Current Website Certificate -->
765             <androidx.cardview.widget.CardView
766                 android:id="@+id/current_website_certificate_cardview"
767                 android:layout_height="wrap_content"
768                 android:layout_width="match_parent"
769                 android:layout_margin="10dp" >
770
771                 <LinearLayout
772                     android:id="@+id/current_website_certificate_linearlayout"
773                     android:layout_height="wrap_content"
774                     android:layout_width="match_parent"
775                     android:orientation="vertical"
776                     android:padding="10dp" >
777
778                     <RadioButton
779                         android:id="@+id/current_website_certificate_radiobutton"
780                         android:layout_height="wrap_content"
781                         android:layout_width="match_parent"
782                         android:text="@string/current_website_ssl_certificate"
783                         android:textSize="17sp"
784                         android:textAllCaps="true"
785                         android:textStyle="bold"
786                         android:textColor="?android:textColorPrimary" />
787
788                     <LinearLayout
789                         android:layout_height="wrap_content"
790                         android:layout_width="match_parent"
791                         android:layout_marginStart="32dp"
792                         android:orientation="vertical" >
793
794                         <!-- Current Website Certificate Issued To. -->
795                         <TextView
796                             android:layout_height="wrap_content"
797                             android:layout_width="match_parent"
798                             android:text="@string/issued_to"
799                             android:textAllCaps="true"
800                             android:textStyle="bold"
801                             android:textColor="?attr/blueTitleTextColor" />
802
803                         <TextView
804                             android:id="@+id/current_website_certificate_issued_to_cname"
805                             android:layout_height="wrap_content"
806                             android:layout_width="match_parent" />
807
808                         <TextView
809                             android:id="@+id/current_website_certificate_issued_to_oname"
810                             android:layout_height="wrap_content"
811                             android:layout_width="match_parent" />
812
813                         <TextView
814                             android:id="@+id/current_website_certificate_issued_to_uname"
815                             android:layout_height="wrap_content"
816                             android:layout_width="match_parent" />
817
818                         <!-- Current Website Certificate Issued By. -->
819                         <TextView
820                             android:layout_height="wrap_content"
821                             android:layout_width="match_parent"
822                             android:layout_marginTop="15dp"
823                             android:text="@string/issued_by"
824                             android:textAllCaps="true"
825                             android:textStyle="bold"
826                             android:textColor="?attr/blueTitleTextColor" />
827
828                         <TextView
829                             android:id="@+id/current_website_certificate_issued_by_cname"
830                             android:layout_height="wrap_content"
831                             android:layout_width="match_parent" />
832
833                         <TextView
834                             android:id="@+id/current_website_certificate_issued_by_oname"
835                             android:layout_height="wrap_content"
836                             android:layout_width="match_parent" />
837
838                         <TextView
839                             android:id="@+id/current_website_certificate_issued_by_uname"
840                             android:layout_height="wrap_content"
841                             android:layout_width="match_parent" />
842
843                         <!-- Current Website Certificate Valid Dates. -->
844                         <TextView
845                             android:layout_height="wrap_content"
846                             android:layout_width="match_parent"
847                             android:layout_marginTop="15dp"
848                             android:text="@string/valid_dates"
849                             android:textAllCaps="true"
850                             android:textStyle="bold"
851                             android:textColor="?attr/blueTitleTextColor" />
852
853                         <TextView
854                             android:id="@+id/current_website_certificate_start_date"
855                             android:layout_height="wrap_content"
856                             android:layout_width="match_parent" />
857
858                         <TextView
859                             android:id="@+id/current_website_certificate_end_date"
860                             android:layout_height="wrap_content"
861                             android:layout_width="match_parent" />
862                     </LinearLayout>
863                 </LinearLayout>
864             </androidx.cardview.widget.CardView>
865
866             <!-- Load An Encrypted Website Instructions. -->
867             <TextView
868                 android:id="@+id/no_current_website_certificate"
869                 android:layout_height="wrap_content"
870                 android:layout_width="match_parent"
871                 android:layout_marginTop="10dp"
872                 android:layout_marginBottom="10dp"
873                 android:layout_marginStart="40dp"
874                 android:layout_marginEnd="40dp"
875                 android:gravity="center_horizontal"
876                 android:text="@string/load_an_encrypted_website" />
877         </LinearLayout>
878
879         <!-- Pinned IP Addresses -->
880         <LinearLayout
881             android:layout_height="wrap_content"
882             android:layout_width="match_parent"
883             android:orientation="vertical"
884             android:layout_marginTop="18dp"
885             android:layout_marginBottom="18dp" >
886
887             <!-- Switch -->
888             <LinearLayout
889                 android:layout_height="wrap_content"
890                 android:layout_width="match_parent"
891                 android:orientation="horizontal" >
892
893                 <ImageView
894                     android:id="@+id/pinned_ip_addresses_imageview"
895                     android:layout_height="wrap_content"
896                     android:layout_width="wrap_content"
897                     android:layout_marginTop="1dp"
898                     android:layout_marginEnd="10dp"
899                     android:layout_gravity="center_vertical"
900                     tools:ignore="contentDescription" />
901
902                 <androidx.appcompat.widget.SwitchCompat
903                     android:id="@+id/pinned_ip_addresses_switch"
904                     android:layout_height="wrap_content"
905                     android:layout_width="match_parent"
906                     android:layout_marginStart="8dp"
907                     android:text="@string/pinned_ip_addresses"
908                     android:textColor="?android:textColorPrimary"
909                     android:textSize="18sp" />
910             </LinearLayout>
911
912             <!-- Saved IP Addresses -->
913             <androidx.cardview.widget.CardView
914                 android:id="@+id/saved_ip_addresses_cardview"
915                 android:layout_height="wrap_content"
916                 android:layout_width="match_parent"
917                 android:layout_marginTop="10dp"
918                 android:layout_marginStart="10dp"
919                 android:layout_marginEnd="10dp" >
920
921                 <LinearLayout
922                     android:id="@+id/saved_ip_addresses_linearlayout"
923                     android:layout_height="wrap_content"
924                     android:layout_width="match_parent"
925                     android:orientation="vertical"
926                     android:padding="10dp" >
927
928                     <RadioButton
929                         android:id="@+id/saved_ip_addresses_radiobutton"
930                         android:layout_height="wrap_content"
931                         android:layout_width="match_parent"
932                         android:text="@string/saved_ip_addresses"
933                         android:textSize="17sp"
934                         android:textAllCaps="true"
935                         android:textStyle="bold"
936                         android:textColor="?android:textColorPrimary" />
937
938                     <TextView
939                         android:id="@+id/saved_ip_addresses_textview"
940                         android:layout_height="wrap_content"
941                         android:layout_width="match_parent"
942                         android:layout_marginStart="32dp"
943                         android:textColor="?attr/blueTextColor" />
944                 </LinearLayout>
945             </androidx.cardview.widget.CardView>
946
947             <androidx.cardview.widget.CardView
948                 android:id="@+id/current_ip_addresses_cardview"
949                 android:layout_height="wrap_content"
950                 android:layout_width="match_parent"
951                 android:layout_margin="10dp">
952
953                 <LinearLayout
954                     android:id="@+id/current_ip_addresses_linearlayout"
955                     android:layout_height="wrap_content"
956                     android:layout_width="match_parent"
957                     android:orientation="vertical"
958                     android:padding="10dp" >
959
960                     <RadioButton
961                         android:id="@+id/current_ip_addresses_radiobutton"
962                         android:layout_height="wrap_content"
963                         android:layout_width="match_parent"
964                         android:text="@string/current_ip_addresses"
965                         android:textSize="17sp"
966                         android:textAllCaps="true"
967                         android:textStyle="bold"
968                         android:textColor="?android:textColorPrimary" />
969
970                     <TextView
971                         android:id="@+id/current_ip_addresses_textview"
972                         android:layout_height="wrap_content"
973                         android:layout_width="match_parent"
974                         android:layout_marginStart="32dp"
975                         android:textColor="?attr/blueTextColor" />
976                 </LinearLayout>
977             </androidx.cardview.widget.CardView>
978         </LinearLayout>
979     </LinearLayout>
980 </ScrollView>