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