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