]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/blob - res/layout/domain_settings_fragment.xml
Add an option to delete all domain settings at once. https://redmine.stoutner.com...
[PrivacyBrowserAndroid.git] / res / layout / domain_settings_fragment.xml
1 <?xml version="1.0" encoding="utf-8"?>
2
3 <!--
4   Copyright © 2017-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 android:id="@+id/domain_settings_scrollview"
22     xmlns:android="http://schemas.android.com/apk/res/android"
23     xmlns:tools="http://schemas.android.com/tools"
24     android:layout_height="wrap_content"
25     android:layout_width="match_parent"
26     android:focusable="true"
27     android:focusableInTouchMode="true"
28     android:descendantFocusability="beforeDescendants"
29     xmlns:app="http://schemas.android.com/apk/res-auto">
30
31     <LinearLayout
32         android:layout_height="wrap_content"
33         android:layout_width="match_parent"
34         android:layout_margin="12dp"
35         android:orientation="vertical"
36         android:divider="?android:attr/dividerVertical" >
37
38         <!-- Domain name. -->
39         <LinearLayout
40             android:layout_height="wrap_content"
41             android:layout_width="match_parent"
42             android:orientation="vertical" >
43
44             <LinearLayout
45                 android:layout_height="wrap_content"
46                 android:layout_width="match_parent"
47                 android:orientation="horizontal" >
48
49                 <ImageView
50                     android:layout_height="wrap_content"
51                     android:layout_width="wrap_content"
52                     android:layout_marginEnd="10dp"
53                     android:layout_marginBottom="12dp"
54                     android:layout_gravity="bottom"
55                     android:src="@drawable/domains_day"
56                     app:tint="?attr/domainSettingsIconTintColor"
57                     tools:ignore="contentDescription" />
58
59                 <!-- `TextInputLayout` makes the `android:hint` float above the `EditText`. -->
60                 <com.google.android.material.textfield.TextInputLayout
61                     android:layout_height="wrap_content"
62                     android:layout_width="match_parent"
63                     android:layout_marginStart="6dp" >
64
65                     <!-- `android:inputType="textUri"` disables spell check in the `EditText`. -->
66                     <com.google.android.material.textfield.TextInputEditText
67                         android:id="@+id/domain_settings_name_edittext"
68                         android:layout_width="match_parent"
69                         android:layout_height="wrap_content"
70                         android:hint="@string/domain_name"
71                         android:inputType="textUri" />
72                 </com.google.android.material.textfield.TextInputLayout>
73             </LinearLayout>
74
75             <TextView
76                 android:layout_height="wrap_content"
77                 android:layout_width="match_parent"
78                 android:text="@string/domain_name_instructions"
79                 android:textSize="12sp"
80                 android:layout_marginStart="43dp"
81                 android:layout_marginBottom="14dp" />
82         </LinearLayout>
83
84         <!-- JavaScript. -->
85         <LinearLayout
86             android:layout_height="wrap_content"
87             android:layout_width="match_parent"
88             android:orientation="horizontal" >
89
90             <ImageView
91                 android:id="@+id/javascript_imageview"
92                 android:layout_height="wrap_content"
93                 android:layout_width="wrap_content"
94                 android:layout_marginTop="1dp"
95                 android:layout_marginEnd="10dp"
96                 android:layout_gravity="center_vertical"
97                 tools:ignore="contentDescription" />
98
99             <androidx.appcompat.widget.SwitchCompat
100                 android:id="@+id/javascript_switch"
101                 android:layout_height="wrap_content"
102                 android:layout_width="match_parent"
103                 android:layout_marginStart="8dp"
104                 android:layout_marginTop="14dp"
105                 android:layout_marginBottom="14dp"
106                 android:text="@string/javascript_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             <androidx.appcompat.widget.SwitchCompat
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             <androidx.appcompat.widget.SwitchCompat
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             <androidx.appcompat.widget.SwitchCompat
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             <androidx.appcompat.widget.SwitchCompat
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             <androidx.appcompat.widget.SwitchCompat
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             <androidx.appcompat.widget.SwitchCompat
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             <androidx.appcompat.widget.SwitchCompat
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             <androidx.appcompat.widget.SwitchCompat
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             <androidx.appcompat.widget.SwitchCompat
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             <androidx.appcompat.widget.SwitchCompat
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             <androidx.appcompat.widget.SwitchCompat
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                     app: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                     app: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                 <androidx.appcompat.widget.SwitchCompat
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                     tools:ignore="TooManyViews" />
687             </LinearLayout>
688
689             <!-- Saved Certificate -->
690             <androidx.cardview.widget.CardView
691                 android:id="@+id/saved_ssl_certificate_cardview"
692                 android:layout_height="wrap_content"
693                 android:layout_width="match_parent"
694                 android:layout_marginTop="10dp"
695                 android:layout_marginStart="10dp"
696                 android:layout_marginEnd="10dp" >
697
698                 <LinearLayout
699                     android:id="@+id/saved_ssl_certificate_linearlayout"
700                     android:layout_height="wrap_content"
701                     android:layout_width="match_parent"
702                     android:orientation="vertical"
703                     android:padding="10dp" >
704
705                     <RadioButton
706                         android:id="@+id/saved_ssl_certificate_radiobutton"
707                         android:layout_height="wrap_content"
708                         android:layout_width="match_parent"
709                         android:text="@string/saved_ssl_certificate"
710                         android:textSize="17sp"
711                         android:textAllCaps="true"
712                         android:textStyle="bold"
713                         android:textColor="?android:textColorPrimary" />
714
715                     <LinearLayout
716                         android:layout_height="wrap_content"
717                         android:layout_width="match_parent"
718                         android:layout_marginStart="32dp"
719                         android:orientation="vertical" >
720
721                         <!-- Saved Certificate Issued To. -->
722                         <TextView
723                             android:layout_height="wrap_content"
724                             android:layout_width="match_parent"
725                             android:text="@string/issued_to"
726                             android:textAllCaps="true"
727                             android:textStyle="bold"
728                             android:textColor="?attr/blueTitleTextColor" />
729
730                         <TextView
731                             android:id="@+id/saved_ssl_certificate_issued_to_cname"
732                             android:layout_height="wrap_content"
733                             android:layout_width="match_parent" />
734
735                         <TextView
736                             android:id="@+id/saved_ssl_certificate_issued_to_oname"
737                             android:layout_height="wrap_content"
738                             android:layout_width="match_parent" />
739
740                         <TextView
741                             android:id="@+id/saved_ssl_certificate_issued_to_uname"
742                             android:layout_height="wrap_content"
743                             android:layout_width="match_parent"/>
744
745                         <!-- Saved Certificate Issued By. -->
746                         <TextView
747                             android:layout_height="wrap_content"
748                             android:layout_width="match_parent"
749                             android:layout_marginTop="15dp"
750                             android:text="@string/issued_by"
751                             android:textAllCaps="true"
752                             android:textStyle="bold"
753                             android:textColor="?attr/blueTitleTextColor"/>
754
755                         <TextView
756                             android:id="@+id/saved_ssl_certificate_issued_by_cname"
757                             android:layout_height="wrap_content"
758                             android:layout_width="match_parent" />
759
760                         <TextView
761                             android:id="@+id/saved_ssl_certificate_issued_by_oname"
762                             android:layout_height="wrap_content"
763                             android:layout_width="match_parent" />
764
765                         <TextView
766                             android:id="@+id/saved_ssl_certificate_issued_by_uname"
767                             android:layout_height="wrap_content"
768                             android:layout_width="match_parent" />
769
770                         <!-- Saved Certificate Valid Dates. -->
771                         <TextView
772                             android:layout_height="wrap_content"
773                             android:layout_width="match_parent"
774                             android:layout_marginTop="15dp"
775                             android:text="@string/valid_dates"
776                             android:textAllCaps="true"
777                             android:textStyle="bold"
778                             android:textColor="?attr/blueTitleTextColor"/>
779
780                         <TextView
781                             android:id="@+id/saved_ssl_certificate_start_date"
782                             android:layout_height="wrap_content"
783                             android:layout_width="match_parent" />
784
785                         <TextView
786                             android:id="@+id/saved_ssl_certificate_end_date"
787                             android:layout_height="wrap_content"
788                             android:layout_width="match_parent" />
789                     </LinearLayout>
790                 </LinearLayout>
791             </androidx.cardview.widget.CardView>
792
793             <!-- Current Website Certificate -->
794             <androidx.cardview.widget.CardView
795                 android:id="@+id/current_website_certificate_cardview"
796                 android:layout_height="wrap_content"
797                 android:layout_width="match_parent"
798                 android:layout_margin="10dp" >
799
800                 <LinearLayout
801                     android:id="@+id/current_website_certificate_linearlayout"
802                     android:layout_height="wrap_content"
803                     android:layout_width="match_parent"
804                     android:orientation="vertical"
805                     android:padding="10dp" >
806
807                     <RadioButton
808                         android:id="@+id/current_website_certificate_radiobutton"
809                         android:layout_height="wrap_content"
810                         android:layout_width="match_parent"
811                         android:text="@string/current_website_ssl_certificate"
812                         android:textSize="17sp"
813                         android:textAllCaps="true"
814                         android:textStyle="bold"
815                         android:textColor="?android:textColorPrimary" />
816
817                     <LinearLayout
818                         android:layout_height="wrap_content"
819                         android:layout_width="match_parent"
820                         android:layout_marginStart="32dp"
821                         android:orientation="vertical" >
822
823                         <!-- Current Website Certificate Issued To. -->
824                         <TextView
825                             android:layout_height="wrap_content"
826                             android:layout_width="match_parent"
827                             android:text="@string/issued_to"
828                             android:textAllCaps="true"
829                             android:textStyle="bold"
830                             android:textColor="?attr/blueTitleTextColor" />
831
832                         <TextView
833                             android:id="@+id/current_website_certificate_issued_to_cname"
834                             android:layout_height="wrap_content"
835                             android:layout_width="match_parent" />
836
837                         <TextView
838                             android:id="@+id/current_website_certificate_issued_to_oname"
839                             android:layout_height="wrap_content"
840                             android:layout_width="match_parent" />
841
842                         <TextView
843                             android:id="@+id/current_website_certificate_issued_to_uname"
844                             android:layout_height="wrap_content"
845                             android:layout_width="match_parent" />
846
847                         <!-- Current Website Certificate Issued By. -->
848                         <TextView
849                             android:layout_height="wrap_content"
850                             android:layout_width="match_parent"
851                             android:layout_marginTop="15dp"
852                             android:text="@string/issued_by"
853                             android:textAllCaps="true"
854                             android:textStyle="bold"
855                             android:textColor="?attr/blueTitleTextColor" />
856
857                         <TextView
858                             android:id="@+id/current_website_certificate_issued_by_cname"
859                             android:layout_height="wrap_content"
860                             android:layout_width="match_parent" />
861
862                         <TextView
863                             android:id="@+id/current_website_certificate_issued_by_oname"
864                             android:layout_height="wrap_content"
865                             android:layout_width="match_parent" />
866
867                         <TextView
868                             android:id="@+id/current_website_certificate_issued_by_uname"
869                             android:layout_height="wrap_content"
870                             android:layout_width="match_parent" />
871
872                         <!-- Current Website Certificate Valid Dates. -->
873                         <TextView
874                             android:layout_height="wrap_content"
875                             android:layout_width="match_parent"
876                             android:layout_marginTop="15dp"
877                             android:text="@string/valid_dates"
878                             android:textAllCaps="true"
879                             android:textStyle="bold"
880                             android:textColor="?attr/blueTitleTextColor" />
881
882                         <TextView
883                             android:id="@+id/current_website_certificate_start_date"
884                             android:layout_height="wrap_content"
885                             android:layout_width="match_parent" />
886
887                         <TextView
888                             android:id="@+id/current_website_certificate_end_date"
889                             android:layout_height="wrap_content"
890                             android:layout_width="match_parent" />
891                     </LinearLayout>
892                 </LinearLayout>
893             </androidx.cardview.widget.CardView>
894
895             <!-- Load An Encrypted Website Instructions. -->
896             <TextView
897                 android:id="@+id/no_current_website_certificate"
898                 android:layout_height="wrap_content"
899                 android:layout_width="match_parent"
900                 android:layout_marginTop="10dp"
901                 android:layout_marginBottom="10dp"
902                 android:layout_marginStart="40dp"
903                 android:layout_marginEnd="40dp"
904                 android:gravity="center_horizontal"
905                 android:text="@string/load_an_encrypted_website" />
906         </LinearLayout>
907
908         <!-- Pinned IP Addresses -->
909         <LinearLayout
910             android:layout_height="wrap_content"
911             android:layout_width="match_parent"
912             android:orientation="vertical"
913             android:layout_marginTop="18dp"
914             android:layout_marginBottom="18dp" >
915
916             <!-- Switch -->
917             <LinearLayout
918                 android:layout_height="wrap_content"
919                 android:layout_width="match_parent"
920                 android:orientation="horizontal" >
921
922                 <ImageView
923                     android:id="@+id/pinned_ip_addresses_imageview"
924                     android:layout_height="wrap_content"
925                     android:layout_width="wrap_content"
926                     android:layout_marginTop="1dp"
927                     android:layout_marginEnd="10dp"
928                     android:layout_gravity="center_vertical"
929                     tools:ignore="contentDescription" />
930
931                 <androidx.appcompat.widget.SwitchCompat
932                     android:id="@+id/pinned_ip_addresses_switch"
933                     android:layout_height="wrap_content"
934                     android:layout_width="match_parent"
935                     android:layout_marginStart="8dp"
936                     android:text="@string/pinned_ip_addresses"
937                     android:textColor="?android:textColorPrimary"
938                     android:textSize="18sp" />
939             </LinearLayout>
940
941             <!-- Saved IP Addresses -->
942             <androidx.cardview.widget.CardView
943                 android:id="@+id/saved_ip_addresses_cardview"
944                 android:layout_height="wrap_content"
945                 android:layout_width="match_parent"
946                 android:layout_marginTop="10dp"
947                 android:layout_marginStart="10dp"
948                 android:layout_marginEnd="10dp" >
949
950                 <LinearLayout
951                     android:id="@+id/saved_ip_addresses_linearlayout"
952                     android:layout_height="wrap_content"
953                     android:layout_width="match_parent"
954                     android:orientation="vertical"
955                     android:padding="10dp" >
956
957                     <RadioButton
958                         android:id="@+id/saved_ip_addresses_radiobutton"
959                         android:layout_height="wrap_content"
960                         android:layout_width="match_parent"
961                         android:text="@string/saved_ip_addresses"
962                         android:textSize="17sp"
963                         android:textAllCaps="true"
964                         android:textStyle="bold"
965                         android:textColor="?android:textColorPrimary" />
966
967                     <TextView
968                         android:id="@+id/saved_ip_addresses_textview"
969                         android:layout_height="wrap_content"
970                         android:layout_width="match_parent"
971                         android:layout_marginStart="32dp"
972                         android:textColor="?attr/blueTextColor" />
973                 </LinearLayout>
974             </androidx.cardview.widget.CardView>
975
976             <androidx.cardview.widget.CardView
977                 android:id="@+id/current_ip_addresses_cardview"
978                 android:layout_height="wrap_content"
979                 android:layout_width="match_parent"
980                 android:layout_margin="10dp">
981
982                 <LinearLayout
983                     android:id="@+id/current_ip_addresses_linearlayout"
984                     android:layout_height="wrap_content"
985                     android:layout_width="match_parent"
986                     android:orientation="vertical"
987                     android:padding="10dp" >
988
989                     <RadioButton
990                         android:id="@+id/current_ip_addresses_radiobutton"
991                         android:layout_height="wrap_content"
992                         android:layout_width="match_parent"
993                         android:text="@string/current_ip_addresses"
994                         android:textSize="17sp"
995                         android:textAllCaps="true"
996                         android:textStyle="bold"
997                         android:textColor="?android:textColorPrimary" />
998
999                     <TextView
1000                         android:id="@+id/current_ip_addresses_textview"
1001                         android:layout_height="wrap_content"
1002                         android:layout_width="match_parent"
1003                         android:layout_marginStart="32dp"
1004                         android:textColor="?attr/blueTextColor" />
1005                 </LinearLayout>
1006             </androidx.cardview.widget.CardView>
1007         </LinearLayout>
1008     </LinearLayout>
1009 </ScrollView>