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