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