]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/blob - app/src/main/res/layout/domain_settings_fragment.xml
Change the domain settings switches to spinners. https://redmine.stoutner.com/issues/407
[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:id="@+id/javascript_linearlayout"
89             android:layout_height="wrap_content"
90             android:layout_width="match_parent"
91             android:orientation="vertical"
92             android:padding="12dp" >
93
94             <TextView
95                 android:layout_height="wrap_content"
96                 android:layout_width="match_parent"
97                 android:text="@string/javascript" />
98
99             <LinearLayout
100                 android:layout_height="wrap_content"
101                 android:layout_width="match_parent"
102                 android:text="@string/javascript" >
103
104                 <ImageView
105                     android:id="@+id/javascript_imageview"
106                     android:layout_height="wrap_content"
107                     android:layout_width="wrap_content"
108                     android:layout_marginTop="1dp"
109                     android:layout_marginEnd="10dp"
110                     android:layout_gravity="center_vertical"
111                     android:contentDescription="@string/javascript" />
112
113                 <Spinner
114                     android:id="@+id/javascript_spinner"
115                     android:layout_height="wrap_content"
116                     android:layout_width="match_parent" />
117             </LinearLayout>
118
119             <TextView
120                 android:id="@+id/javascript_textview"
121                 android:layout_height="wrap_content"
122                 android:layout_width="match_parent"
123                 android:layout_marginStart="45dp"
124                 android:layout_marginEnd="36dp"
125                 android:textSize="13sp" />
126         </LinearLayout>
127
128         <!-- Cookies. -->
129         <LinearLayout
130             android:id="@+id/cookies_linearlayout"
131             android:layout_height="wrap_content"
132             android:layout_width="match_parent"
133             android:orientation="vertical"
134             android:padding="12dp" >
135
136             <TextView
137                 android:layout_height="wrap_content"
138                 android:layout_width="match_parent"
139                 android:text="@string/cookies" />
140
141             <LinearLayout
142                 android:layout_height="wrap_content"
143                 android:layout_width="match_parent"
144                 android:text="@string/cookies" >
145
146                 <ImageView
147                     android:id="@+id/cookies_imageview"
148                     android:layout_height="wrap_content"
149                     android:layout_width="wrap_content"
150                     android:layout_marginTop="1dp"
151                     android:layout_marginEnd="10dp"
152                     android:layout_gravity="center_vertical"
153                     android:src="@drawable/cookies_enabled"
154                     app:tint="@color/yellow_icon_selector"
155                     android:contentDescription="@string/cookies" />
156
157                 <Spinner
158                     android:id="@+id/cookies_spinner"
159                     android:layout_height="wrap_content"
160                     android:layout_width="match_parent" />
161             </LinearLayout>
162
163             <TextView
164                 android:id="@+id/cookies_textview"
165                 android:layout_height="wrap_content"
166                 android:layout_width="match_parent"
167                 android:layout_marginStart="45dp"
168                 android:layout_marginEnd="36dp"
169                 android:textSize="13sp" />
170         </LinearLayout>
171
172         <!-- DOM Storage. -->
173         <LinearLayout
174             android:id="@+id/dom_storage_linearlayout"
175             android:layout_height="wrap_content"
176             android:layout_width="match_parent"
177             android:orientation="vertical"
178             android:padding="12dp" >
179
180             <TextView
181                 android:layout_height="wrap_content"
182                 android:layout_width="match_parent"
183                 android:text="@string/dom_storage" />
184
185             <LinearLayout
186                 android:layout_height="wrap_content"
187                 android:layout_width="match_parent"
188                 android:text="@string/dom_storage" >
189
190                 <ImageView
191                     android:id="@+id/dom_storage_imageview"
192                     android:layout_height="wrap_content"
193                     android:layout_width="wrap_content"
194                     android:layout_marginTop="1dp"
195                     android:layout_marginEnd="10dp"
196                     android:layout_gravity="center_vertical"
197                     android:src="@drawable/dom_storage_enabled"
198                     app:tint="@color/yellow_icon_selector"
199                     android:contentDescription="@string/dom_storage" />
200
201                 <Spinner
202                     android:id="@+id/dom_storage_spinner"
203                     android:layout_height="wrap_content"
204                     android:layout_width="match_parent" />
205             </LinearLayout>
206
207             <TextView
208                 android:id="@+id/dom_storage_textview"
209                 android:layout_height="wrap_content"
210                 android:layout_width="match_parent"
211                 android:layout_marginStart="45dp"
212                 android:layout_marginEnd="36dp"
213                 android:textSize="13sp" />
214         </LinearLayout>
215
216         <!-- Form Data. This may be removed one the minimum API >= 26. -->
217         <LinearLayout
218             android:id="@+id/form_data_linearlayout"
219             android:layout_height="wrap_content"
220             android:layout_width="match_parent"
221             android:orientation="vertical"
222             android:padding="12dp" >
223
224             <TextView
225                 android:layout_height="wrap_content"
226                 android:layout_width="match_parent"
227                 android:text="@string/form_data" />
228
229             <LinearLayout
230                 android:layout_height="wrap_content"
231                 android:layout_width="match_parent"
232                 android:orientation="horizontal" >
233
234                 <ImageView
235                     android:id="@+id/form_data_imageview"
236                     android:layout_height="wrap_content"
237                     android:layout_width="wrap_content"
238                     android:layout_marginTop="1dp"
239                     android:layout_marginEnd="10dp"
240                     android:layout_gravity="center_vertical"
241                     android:src="@drawable/form_data_enabled"
242                     app:tint="@color/yellow_icon_selector"
243                     android:contentDescription="@string/form_data" />
244
245                 <Spinner
246                     android:id="@+id/form_data_spinner"
247                     android:layout_height="wrap_content"
248                     android:layout_width="match_parent" />
249             </LinearLayout>
250
251             <TextView
252                 android:id="@+id/form_data_textview"
253                 android:layout_height="wrap_content"
254                 android:layout_width="match_parent"
255                 android:layout_marginStart="45dp"
256                 android:layout_marginEnd="36dp"
257                 android:textSize="13sp" />
258         </LinearLayout>
259
260         <!-- EasyList. -->
261         <LinearLayout
262             android:id="@+id/easylist_linearlayout"
263             android:layout_height="wrap_content"
264             android:layout_width="match_parent"
265             android:orientation="vertical"
266             android:padding="12dp" >
267
268             <TextView
269                 android:layout_height="wrap_content"
270                 android:layout_width="match_parent"
271                 android:text="@string/easylist" />
272
273             <LinearLayout
274                 android:layout_height="wrap_content"
275                 android:layout_width="match_parent"
276                 android:orientation="horizontal" >
277
278                 <ImageView
279                     android:id="@+id/easylist_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/block_ads_enabled"
286                     app:tint="@color/blue_icon_selector"
287                     android:contentDescription="@string/easylist" />
288
289                 <Spinner
290                     android:id="@+id/easylist_spinner"
291                     android:layout_height="wrap_content"
292                     android:layout_width="match_parent" />
293             </LinearLayout>
294
295             <TextView
296                 android:id="@+id/easylist_textview"
297                 android:layout_height="wrap_content"
298                 android:layout_width="match_parent"
299                 android:layout_marginStart="45dp"
300                 android:layout_marginEnd="36dp"
301                 android:textSize="13sp" />
302         </LinearLayout>
303
304         <!-- EasyPrivacy. -->
305         <LinearLayout
306             android:id="@+id/easyprivacy_linearlayout"
307             android:layout_height="wrap_content"
308             android:layout_width="match_parent"
309             android:orientation="vertical"
310             android:padding="12dp" >
311
312             <TextView
313                 android:layout_height="wrap_content"
314                 android:layout_width="match_parent"
315                 android:text="@string/easyprivacy" />
316
317             <LinearLayout
318                 android:layout_height="wrap_content"
319                 android:layout_width="match_parent"
320                 android:orientation="horizontal" >
321
322                 <ImageView
323                     android:id="@+id/easyprivacy_imageview"
324                     android:layout_height="wrap_content"
325                     android:layout_width="wrap_content"
326                     android:layout_marginTop="1dp"
327                     android:layout_marginEnd="10dp"
328                     android:layout_gravity="center_vertical"
329                     android:src="@drawable/block_tracking_enabled"
330                     app:tint="@color/blue_icon_selector"
331                     android:contentDescription="@string/easyprivacy" />
332
333                 <Spinner
334                     android:id="@+id/easyprivacy_spinner"
335                     android:layout_height="wrap_content"
336                     android:layout_width="match_parent" />
337             </LinearLayout>
338
339             <TextView
340                 android:id="@+id/easyprivacy_textview"
341                 android:layout_height="wrap_content"
342                 android:layout_width="match_parent"
343                 android:layout_marginStart="45dp"
344                 android:layout_marginEnd="36dp"
345                 android:textSize="13sp" />
346         </LinearLayout>
347
348         <!-- Fanboy's Annoyance List. -->
349         <LinearLayout
350             android:id="@+id/fanboys_annoyance_list_linearlayout"
351             android:layout_height="wrap_content"
352             android:layout_width="match_parent"
353             android:orientation="vertical"
354             android:padding="12dp" >
355
356             <TextView
357                 android:layout_height="wrap_content"
358                 android:layout_width="match_parent"
359                 android:text="@string/fanboys_annoyance_list" />
360
361             <LinearLayout
362                 android:layout_height="wrap_content"
363                 android:layout_width="match_parent"
364                 android:orientation="horizontal" >
365
366                 <ImageView
367                     android:id="@+id/fanboys_annoyance_list_imageview"
368                     android:layout_height="wrap_content"
369                     android:layout_width="wrap_content"
370                     android:layout_marginTop="1dp"
371                     android:layout_marginEnd="10dp"
372                     android:layout_gravity="center_vertical"
373                     android:src="@drawable/social_media_enabled"
374                     app:tint="@color/blue_icon_selector"
375                     android:contentDescription="@string/fanboys_annoyance_list" />
376
377                 <Spinner
378                     android:id="@+id/fanboys_annoyance_list_spinner"
379                     android:layout_height="wrap_content"
380                     android:layout_width="match_parent" />
381             </LinearLayout>
382
383             <TextView
384                 android:id="@+id/fanboys_annoyance_list_textview"
385                 android:layout_height="wrap_content"
386                 android:layout_width="match_parent"
387                 android:layout_marginStart="45dp"
388                 android:layout_marginEnd="36dp"
389                 android:textSize="13sp" />
390         </LinearLayout>
391
392         <!-- Fanboy's Social Blocking List. -->
393         <LinearLayout
394             android:id="@+id/fanboys_social_blocking_list_linearlayout"
395             android:layout_height="wrap_content"
396             android:layout_width="match_parent"
397             android:orientation="vertical"
398             android:padding="12dp" >
399
400             <TextView
401                 android:layout_height="wrap_content"
402                 android:layout_width="match_parent"
403                 android:text="@string/fanboys_social_blocking_list" />
404
405             <LinearLayout
406                 android:layout_height="wrap_content"
407                 android:layout_width="match_parent"
408                 android:orientation="horizontal" >
409
410                 <ImageView
411                     android:id="@+id/fanboys_social_blocking_list_imageview"
412                     android:layout_height="wrap_content"
413                     android:layout_width="wrap_content"
414                     android:layout_marginTop="1dp"
415                     android:layout_marginEnd="10dp"
416                     android:layout_gravity="center_vertical"
417                     android:src="@drawable/social_media_enabled"
418                     app:tint="@color/blue_icon_selector"
419                     android:contentDescription="@string/fanboys_social_blocking_list" />
420
421                 <Spinner
422                     android:id="@+id/fanboys_social_blocking_list_spinner"
423                     android:layout_height="wrap_content"
424                     android:layout_width="match_parent" />
425             </LinearLayout>
426
427             <TextView
428                 android:id="@+id/fanboys_social_blocking_list_textview"
429                 android:layout_height="wrap_content"
430                 android:layout_width="match_parent"
431                 android:layout_marginStart="45dp"
432                 android:layout_marginEnd="36dp"
433                 android:textSize="13sp" />
434         </LinearLayout>
435
436         <!-- UltraList. -->
437         <LinearLayout
438             android:id="@+id/ultralist_linearlayout"
439             android:layout_height="wrap_content"
440             android:layout_width="match_parent"
441             android:orientation="vertical"
442             android:padding="12dp" >
443
444             <TextView
445                 android:layout_height="wrap_content"
446                 android:layout_width="match_parent"
447                 android:text="@string/ultralist" />
448
449             <LinearLayout
450                 android:layout_height="wrap_content"
451                 android:layout_width="match_parent"
452                 android:orientation="horizontal" >
453
454                 <ImageView
455                     android:id="@+id/ultralist_imageview"
456                     android:layout_height="wrap_content"
457                     android:layout_width="wrap_content"
458                     android:layout_marginTop="1dp"
459                     android:layout_marginEnd="10dp"
460                     android:layout_gravity="center_vertical"
461                     android:src="@drawable/block_ads_enabled"
462                     app:tint="@color/blue_icon_selector"
463                     android:contentDescription="@string/ultralist" />
464
465                 <Spinner
466                     android:id="@+id/ultralist_spinner"
467                     android:layout_height="wrap_content"
468                     android:layout_width="match_parent" />
469             </LinearLayout>
470
471             <TextView
472                 android:id="@+id/ultralist_textview"
473                 android:layout_height="wrap_content"
474                 android:layout_width="match_parent"
475                 android:layout_marginStart="45dp"
476                 android:layout_marginEnd="36dp"
477                 android:textSize="13sp" />
478         </LinearLayout>
479
480         <!-- UltraPrivacy. -->
481         <LinearLayout
482             android:id="@+id/ultraprivacy_linearlayout"
483             android:layout_height="wrap_content"
484             android:layout_width="match_parent"
485             android:orientation="vertical"
486             android:padding="12dp" >
487
488             <TextView
489                 android:layout_height="wrap_content"
490                 android:layout_width="match_parent"
491                 android:text="@string/ultraprivacy" />
492
493             <LinearLayout
494                 android:layout_height="wrap_content"
495                 android:layout_width="match_parent"
496                 android:orientation="horizontal" >
497
498                 <ImageView
499                     android:id="@+id/ultraprivacy_imageview"
500                     android:layout_height="wrap_content"
501                     android:layout_width="wrap_content"
502                     android:layout_marginTop="1dp"
503                     android:layout_marginEnd="10dp"
504                     android:layout_gravity="center_vertical"
505                     android:src="@drawable/block_tracking_enabled"
506                     app:tint="@color/blue_icon_selector"
507                     android:contentDescription="@string/ultraprivacy" />
508
509                 <Spinner
510                     android:id="@+id/ultraprivacy_spinner"
511                     android:layout_height="wrap_content"
512                     android:layout_width="match_parent" />
513             </LinearLayout>
514
515             <TextView
516                 android:id="@+id/ultraprivacy_textview"
517                 android:layout_height="wrap_content"
518                 android:layout_width="match_parent"
519                 android:layout_marginStart="45dp"
520                 android:layout_marginEnd="36dp"
521                 android:textSize="13sp" />
522         </LinearLayout>
523
524         <!-- Block All Third Party Requests. -->
525         <LinearLayout
526             android:id="@+id/block_all_third_party_requests_linearlayout"
527             android:layout_height="wrap_content"
528             android:layout_width="match_parent"
529             android:orientation="vertical"
530             android:padding="12dp" >
531
532             <TextView
533                 android:layout_height="wrap_content"
534                 android:layout_width="match_parent"
535                 android:text="@string/block_all_third_party_requests" />
536
537             <LinearLayout
538                 android:layout_height="wrap_content"
539                 android:layout_width="match_parent"
540                 android:orientation="horizontal" >
541
542                 <ImageView
543                     android:id="@+id/block_all_third_party_requests_imageview"
544                     android:layout_height="wrap_content"
545                     android:layout_width="wrap_content"
546                     android:layout_marginTop="1dp"
547                     android:layout_marginEnd="10dp"
548                     android:layout_gravity="center_vertical"
549                     android:src="@drawable/block_all_third_party_requests_enabled"
550                     app:tint="@color/blue_icon_selector"
551                     android:contentDescription="@string/block_all_third_party_requests" />
552
553                 <Spinner
554                     android:id="@+id/block_all_third_party_requests_spinner"
555                     android:layout_height="wrap_content"
556                     android:layout_width="match_parent" />
557             </LinearLayout>
558
559             <TextView
560                 android:id="@+id/block_all_third_party_requests_textview"
561                 android:layout_height="wrap_content"
562                 android:layout_width="match_parent"
563                 android:layout_marginStart="45dp"
564                 android:layout_marginEnd="36dp"
565                 android:textSize="13sp" />
566         </LinearLayout>
567
568         <!-- User Agent. -->
569         <LinearLayout
570             android:id="@+id/user_agent_linearlayout"
571             android:layout_height="wrap_content"
572             android:layout_width="match_parent"
573             android:orientation="vertical"
574             android:padding="12dp" >
575
576             <TextView
577                 android:layout_height="wrap_content"
578                 android:layout_width="match_parent"
579                 android:text="@string/user_agent" />
580
581             <LinearLayout
582                 android:layout_height="wrap_content"
583                 android:layout_width="match_parent"
584                 android:orientation="horizontal" >
585
586                 <ImageView
587                     android:layout_height="wrap_content"
588                     android:layout_width="wrap_content"
589                     android:layout_marginTop="1dp"
590                     android:layout_marginEnd="10dp"
591                     android:layout_gravity="center_vertical"
592                     android:src="@drawable/user_agent"
593                     app:tint="@color/blue_icon"
594                     android:contentDescription="@string/user_agent" />
595
596                 <Spinner
597                     android:id="@+id/user_agent_spinner"
598                     android:layout_height="wrap_content"
599                     android:layout_width="match_parent" />
600             </LinearLayout>
601
602             <TextView
603                 android:id="@+id/user_agent_textview"
604                 android:layout_height="wrap_content"
605                 android:layout_width="match_parent"
606                 android:layout_marginStart="45dp"
607                 android:layout_marginEnd="36dp"
608                 android:textSize="13sp" />
609
610             <EditText
611                 android:id="@+id/custom_user_agent_edittext"
612                 android:layout_height="wrap_content"
613                 android:layout_width="match_parent"
614                 android:layout_marginStart="40dp"
615                 android:layout_marginEnd="60dp"
616                 android:inputType="textUri"
617                 android:hint="@string/custom_user_agent"
618                 android:importantForAutofill="no" />
619         </LinearLayout>
620
621         <!-- Font Size. -->
622         <LinearLayout
623             android:id="@+id/font_size_linearlayout"
624             android:layout_height="wrap_content"
625             android:layout_width="match_parent"
626             android:orientation="vertical"
627             android:padding="12dp" >
628
629             <TextView
630                 android:layout_height="wrap_content"
631                 android:layout_width="match_parent"
632                 android:text="@string/font_size" />
633
634             <LinearLayout
635                 android:layout_height="wrap_content"
636                 android:layout_width="match_parent"
637                 android:orientation="horizontal" >
638
639                 <ImageView
640                     android:layout_height="wrap_content"
641                     android:layout_width="wrap_content"
642                     android:layout_marginTop="1dp"
643                     android:layout_marginEnd="10dp"
644                     android:layout_gravity="center_vertical"
645                     android:src="@drawable/font_size"
646                     app:tint="@color/blue_icon"
647                     android:contentDescription="@string/font_size" />
648
649                 <Spinner
650                     android:id="@+id/font_size_spinner"
651                     android:layout_height="wrap_content"
652                     android:layout_width="match_parent" />
653             </LinearLayout>
654
655             <TextView
656                 android:id="@+id/default_font_size_textview"
657                 android:layout_height="wrap_content"
658                 android:layout_width="match_parent"
659                 android:layout_marginStart="45dp"
660                 android:layout_marginEnd="36dp"
661                 android:textSize="13sp" />
662
663             <EditText
664                 android:id="@+id/custom_font_size_edittext"
665                 android:layout_height="wrap_content"
666                 android:layout_width="match_parent"
667                 android:layout_marginStart="40dp"
668                 android:layout_marginEnd="60dp"
669                 android:inputType="number"
670                 android:hint="@string/font_size"
671                 android:importantForAutofill="no" />
672         </LinearLayout>
673
674         <!-- Swipe to Refresh. -->
675         <LinearLayout
676             android:id="@+id/swipe_to_refresh_linearlayout"
677             android:layout_height="wrap_content"
678             android:layout_width="match_parent"
679             android:orientation="vertical"
680             android:padding="12dp" >
681
682             <TextView
683                 android:layout_height="wrap_content"
684                 android:layout_width="match_parent"
685                 android:text="@string/swipe_to_refresh"
686                 tools:ignore="TooManyViews" />
687
688             <LinearLayout
689                 android:layout_height="wrap_content"
690                 android:layout_width="match_parent"
691                 android:orientation="horizontal" >
692
693                 <ImageView
694                     android:id="@+id/swipe_to_refresh_imageview"
695                     android:layout_height="wrap_content"
696                     android:layout_width="wrap_content"
697                     android:layout_marginTop="1dp"
698                     android:layout_marginEnd="10dp"
699                     android:layout_gravity="center_vertical"
700                     android:src="@drawable/refresh_enabled"
701                     app:tint="@color/blue_icon_selector"
702                     android:contentDescription="@string/swipe_to_refresh" />
703
704                 <Spinner
705                     android:id="@+id/swipe_to_refresh_spinner"
706                     android:layout_height="wrap_content"
707                     android:layout_width="match_parent" />
708             </LinearLayout>
709
710             <TextView
711                 android:id="@+id/swipe_to_refresh_textview"
712                 android:layout_height="wrap_content"
713                 android:layout_width="match_parent"
714                 android:layout_marginStart="45dp"
715                 android:layout_marginEnd="36dp"
716                 android:textSize="13sp" />
717         </LinearLayout>
718
719         <!-- WebView Theme. -->
720         <LinearLayout
721             android:id="@+id/webview_theme_linearlayout"
722             android:layout_height="wrap_content"
723             android:layout_width="match_parent"
724             android:orientation="vertical"
725             android:padding="12dp" >
726
727             <TextView
728                 android:layout_height="wrap_content"
729                 android:layout_width="match_parent"
730                 android:text="@string/webview_theme" />
731
732             <LinearLayout
733                 android:layout_height="wrap_content"
734                 android:layout_width="match_parent"
735                 android:orientation="horizontal" >
736
737                 <ImageView
738                     android:id="@+id/webview_theme_imageview"
739                     android:layout_height="wrap_content"
740                     android:layout_width="wrap_content"
741                     android:layout_marginTop="1dp"
742                     android:layout_marginEnd="10dp"
743                     android:layout_gravity="center_vertical"
744                     android:src="@drawable/webview_light_theme"
745                     app:tint="@color/blue_icon_selector"
746                     android:contentDescription="@string/webview_theme" />
747
748                 <Spinner
749                     android:id="@+id/webview_theme_spinner"
750                     android:layout_height="wrap_content"
751                     android:layout_width="match_parent" />
752             </LinearLayout>
753
754             <TextView
755                 android:id="@+id/webview_theme_textview"
756                 android:layout_height="wrap_content"
757                 android:layout_width="match_parent"
758                 android:layout_marginStart="45dp"
759                 android:layout_marginEnd="36dp"
760                 android:textSize="13sp" />
761         </LinearLayout>
762
763         <!-- Wide Viewport. -->
764         <LinearLayout
765             android:id="@+id/wide_viewport_linearlayout"
766             android:layout_height="wrap_content"
767             android:layout_width="match_parent"
768             android:orientation="vertical"
769             android:padding="12dp" >
770
771             <TextView
772                 android:layout_height="wrap_content"
773                 android:layout_width="match_parent"
774                 android:text="@string/wide_viewport" />
775
776             <LinearLayout
777                 android:layout_height="wrap_content"
778                 android:layout_width="match_parent"
779                 android:orientation="horizontal" >
780
781                 <ImageView
782                     android:id="@+id/wide_viewport_imageview"
783                     android:layout_height="wrap_content"
784                     android:layout_width="wrap_content"
785                     android:layout_marginTop="1dp"
786                     android:layout_marginEnd="10dp"
787                     android:layout_gravity="center_vertical"
788                     android:src="@drawable/wide_viewport_enabled"
789                     app:tint="@color/blue_icon_selector"
790                     android:contentDescription="@string/wide_viewport" />
791
792                 <Spinner
793                     android:id="@+id/wide_viewport_spinner"
794                     android:layout_height="wrap_content"
795                     android:layout_width="match_parent" />
796             </LinearLayout>
797
798             <TextView
799                 android:id="@+id/wide_viewport_textview"
800                 android:layout_height="wrap_content"
801                 android:layout_width="match_parent"
802                 android:layout_marginStart="45dp"
803                 android:layout_marginEnd="36dp"
804                 android:textSize="13sp" />
805         </LinearLayout>
806
807         <!-- Display Images. -->
808         <LinearLayout
809             android:id="@+id/display_images_linearlayout"
810             android:layout_height="wrap_content"
811             android:layout_width="match_parent"
812             android:orientation="vertical"
813             android:padding="12dp" >
814
815             <TextView
816                 android:layout_height="wrap_content"
817                 android:layout_width="match_parent"
818                 android:text="@string/display_images" />
819
820             <LinearLayout
821                 android:layout_height="wrap_content"
822                 android:layout_width="match_parent"
823                 android:orientation="horizontal" >
824
825                 <ImageView
826                     android:id="@+id/display_images_imageview"
827                     android:layout_height="wrap_content"
828                     android:layout_width="wrap_content"
829                     android:layout_marginTop="1dp"
830                     android:layout_marginEnd="10dp"
831                     android:layout_gravity="center_vertical"
832                     android:src="@drawable/images_enabled"
833                     app:tint="@color/blue_icon_selector"
834                     android:contentDescription="@string/display_webpage_images" />
835
836                 <Spinner
837                     android:id="@+id/display_images_spinner"
838                     android:layout_height="wrap_content"
839                     android:layout_width="match_parent" />
840             </LinearLayout>
841
842             <TextView
843                 android:id="@+id/display_images_textview"
844                 android:layout_height="wrap_content"
845                 android:layout_width="match_parent"
846                 android:layout_marginStart="45dp"
847                 android:layout_marginEnd="36dp"
848                 android:textSize="13sp" />
849         </LinearLayout>
850
851         <!-- Pinned SSL Certificate -->
852         <LinearLayout
853             android:layout_height="wrap_content"
854             android:layout_width="match_parent"
855             android:orientation="vertical"
856             android:layout_marginTop="18dp"
857             android:layout_marginBottom="18dp"
858             android:layout_marginStart="12dp"
859             android:layout_marginEnd="12dp" >
860
861             <!-- Switch -->
862             <LinearLayout
863                 android:layout_height="wrap_content"
864                 android:layout_width="match_parent"
865                 android:orientation="horizontal" >
866
867                 <ImageView
868                     android:id="@+id/pinned_ssl_certificate_imageview"
869                     android:layout_height="wrap_content"
870                     android:layout_width="wrap_content"
871                     android:layout_marginTop="1dp"
872                     android:layout_marginEnd="10dp"
873                     android:layout_gravity="center_vertical"
874                     android:src="@drawable/ssl_certificate"
875                     app:tint="@color/blue_icon_selector"
876                     tools:ignore="contentDescription" />
877
878                 <androidx.appcompat.widget.SwitchCompat
879                     android:id="@+id/pinned_ssl_certificate_switch"
880                     android:layout_height="wrap_content"
881                     android:layout_width="match_parent"
882                     android:layout_marginStart="8dp"
883                     android:text="@string/pinned_ssl_certificate"
884                     android:textColor="?android:textColorPrimary"
885                     android:textSize="18sp" />
886             </LinearLayout>
887
888             <!-- Saved Certificate -->
889             <androidx.cardview.widget.CardView
890                 android:id="@+id/saved_ssl_certificate_cardview"
891                 android:layout_height="wrap_content"
892                 android:layout_width="match_parent"
893                 android:layout_marginTop="10dp"
894                 android:layout_marginStart="10dp"
895                 android:layout_marginEnd="10dp" >
896
897                 <LinearLayout
898                     android:id="@+id/saved_ssl_certificate_linearlayout"
899                     android:layout_height="wrap_content"
900                     android:layout_width="match_parent"
901                     android:orientation="vertical"
902                     android:padding="10dp" >
903
904                     <RadioButton
905                         android:id="@+id/saved_ssl_certificate_radiobutton"
906                         android:layout_height="wrap_content"
907                         android:layout_width="match_parent"
908                         android:text="@string/saved_ssl_certificate"
909                         android:textSize="17sp"
910                         android:textAllCaps="true"
911                         android:textStyle="bold"
912                         android:textColor="?android:textColorPrimary"
913                         tools:ignore="TooManyViews" />
914
915                     <LinearLayout
916                         android:layout_height="wrap_content"
917                         android:layout_width="match_parent"
918                         android:layout_marginStart="32dp"
919                         android:orientation="vertical" >
920
921                         <!-- Saved Certificate Issued To. -->
922                         <TextView
923                             android:layout_height="wrap_content"
924                             android:layout_width="match_parent"
925                             android:text="@string/issued_to"
926                             android:textAllCaps="true"
927                             android:textStyle="bold"
928                             android:textColor="@color/blue_title_text" />
929
930                         <TextView
931                             android:id="@+id/saved_ssl_certificate_issued_to_cname"
932                             android:layout_height="wrap_content"
933                             android:layout_width="match_parent" />
934
935                         <TextView
936                             android:id="@+id/saved_ssl_certificate_issued_to_oname"
937                             android:layout_height="wrap_content"
938                             android:layout_width="match_parent" />
939
940                         <TextView
941                             android:id="@+id/saved_ssl_certificate_issued_to_uname"
942                             android:layout_height="wrap_content"
943                             android:layout_width="match_parent"/>
944
945                         <!-- Saved Certificate Issued By. -->
946                         <TextView
947                             android:layout_height="wrap_content"
948                             android:layout_width="match_parent"
949                             android:layout_marginTop="15dp"
950                             android:text="@string/issued_by"
951                             android:textAllCaps="true"
952                             android:textStyle="bold"
953                             android:textColor="@color/blue_title_text"/>
954
955                         <TextView
956                             android:id="@+id/saved_ssl_certificate_issued_by_cname"
957                             android:layout_height="wrap_content"
958                             android:layout_width="match_parent" />
959
960                         <TextView
961                             android:id="@+id/saved_ssl_certificate_issued_by_oname"
962                             android:layout_height="wrap_content"
963                             android:layout_width="match_parent" />
964
965                         <TextView
966                             android:id="@+id/saved_ssl_certificate_issued_by_uname"
967                             android:layout_height="wrap_content"
968                             android:layout_width="match_parent" />
969
970                         <!-- Saved Certificate Valid Dates. -->
971                         <TextView
972                             android:layout_height="wrap_content"
973                             android:layout_width="match_parent"
974                             android:layout_marginTop="15dp"
975                             android:text="@string/valid_dates"
976                             android:textAllCaps="true"
977                             android:textStyle="bold"
978                             android:textColor="@color/blue_title_text"/>
979
980                         <TextView
981                             android:id="@+id/saved_ssl_certificate_start_date"
982                             android:layout_height="wrap_content"
983                             android:layout_width="match_parent" />
984
985                         <TextView
986                             android:id="@+id/saved_ssl_certificate_end_date"
987                             android:layout_height="wrap_content"
988                             android:layout_width="match_parent" />
989                     </LinearLayout>
990                 </LinearLayout>
991             </androidx.cardview.widget.CardView>
992
993             <!-- Current Website Certificate -->
994             <androidx.cardview.widget.CardView
995                 android:id="@+id/current_website_certificate_cardview"
996                 android:layout_height="wrap_content"
997                 android:layout_width="match_parent"
998                 android:layout_margin="10dp" >
999
1000                 <LinearLayout
1001                     android:id="@+id/current_website_certificate_linearlayout"
1002                     android:layout_height="wrap_content"
1003                     android:layout_width="match_parent"
1004                     android:orientation="vertical"
1005                     android:padding="10dp" >
1006
1007                     <RadioButton
1008                         android:id="@+id/current_website_certificate_radiobutton"
1009                         android:layout_height="wrap_content"
1010                         android:layout_width="match_parent"
1011                         android:text="@string/current_website_ssl_certificate"
1012                         android:textSize="17sp"
1013                         android:textAllCaps="true"
1014                         android:textStyle="bold"
1015                         android:textColor="?android:textColorPrimary" />
1016
1017                     <LinearLayout
1018                         android:layout_height="wrap_content"
1019                         android:layout_width="match_parent"
1020                         android:layout_marginStart="32dp"
1021                         android:orientation="vertical" >
1022
1023                         <!-- Current Website Certificate Issued To. -->
1024                         <TextView
1025                             android:layout_height="wrap_content"
1026                             android:layout_width="match_parent"
1027                             android:text="@string/issued_to"
1028                             android:textAllCaps="true"
1029                             android:textStyle="bold"
1030                             android:textColor="@color/blue_title_text" />
1031
1032                         <TextView
1033                             android:id="@+id/current_website_certificate_issued_to_cname"
1034                             android:layout_height="wrap_content"
1035                             android:layout_width="match_parent" />
1036
1037                         <TextView
1038                             android:id="@+id/current_website_certificate_issued_to_oname"
1039                             android:layout_height="wrap_content"
1040                             android:layout_width="match_parent" />
1041
1042                         <TextView
1043                             android:id="@+id/current_website_certificate_issued_to_uname"
1044                             android:layout_height="wrap_content"
1045                             android:layout_width="match_parent" />
1046
1047                         <!-- Current Website Certificate Issued By. -->
1048                         <TextView
1049                             android:layout_height="wrap_content"
1050                             android:layout_width="match_parent"
1051                             android:layout_marginTop="15dp"
1052                             android:text="@string/issued_by"
1053                             android:textAllCaps="true"
1054                             android:textStyle="bold"
1055                             android:textColor="@color/blue_title_text" />
1056
1057                         <TextView
1058                             android:id="@+id/current_website_certificate_issued_by_cname"
1059                             android:layout_height="wrap_content"
1060                             android:layout_width="match_parent" />
1061
1062                         <TextView
1063                             android:id="@+id/current_website_certificate_issued_by_oname"
1064                             android:layout_height="wrap_content"
1065                             android:layout_width="match_parent" />
1066
1067                         <TextView
1068                             android:id="@+id/current_website_certificate_issued_by_uname"
1069                             android:layout_height="wrap_content"
1070                             android:layout_width="match_parent" />
1071
1072                         <!-- Current Website Certificate Valid Dates. -->
1073                         <TextView
1074                             android:layout_height="wrap_content"
1075                             android:layout_width="match_parent"
1076                             android:layout_marginTop="15dp"
1077                             android:text="@string/valid_dates"
1078                             android:textAllCaps="true"
1079                             android:textStyle="bold"
1080                             android:textColor="@color/blue_title_text" />
1081
1082                         <TextView
1083                             android:id="@+id/current_website_certificate_start_date"
1084                             android:layout_height="wrap_content"
1085                             android:layout_width="match_parent" />
1086
1087                         <TextView
1088                             android:id="@+id/current_website_certificate_end_date"
1089                             android:layout_height="wrap_content"
1090                             android:layout_width="match_parent" />
1091                     </LinearLayout>
1092                 </LinearLayout>
1093             </androidx.cardview.widget.CardView>
1094
1095             <!-- Load An Encrypted Website Instructions. -->
1096             <TextView
1097                 android:id="@+id/no_current_website_certificate"
1098                 android:layout_height="wrap_content"
1099                 android:layout_width="match_parent"
1100                 android:layout_marginTop="10dp"
1101                 android:layout_marginBottom="10dp"
1102                 android:layout_marginStart="40dp"
1103                 android:layout_marginEnd="40dp"
1104                 android:gravity="center_horizontal"
1105                 android:text="@string/load_an_encrypted_website" />
1106         </LinearLayout>
1107
1108         <!-- Pinned IP Addresses -->
1109         <LinearLayout
1110             android:layout_height="wrap_content"
1111             android:layout_width="match_parent"
1112             android:orientation="vertical"
1113             android:layout_marginTop="18dp"
1114             android:layout_marginBottom="18dp"
1115             android:layout_marginStart="12dp"
1116             android:layout_marginEnd="12dp" >
1117
1118             <!-- Switch -->
1119             <LinearLayout
1120                 android:layout_height="wrap_content"
1121                 android:layout_width="match_parent"
1122                 android:orientation="horizontal" >
1123
1124                 <ImageView
1125                     android:id="@+id/pinned_ip_addresses_imageview"
1126                     android:layout_height="wrap_content"
1127                     android:layout_width="wrap_content"
1128                     android:layout_marginTop="1dp"
1129                     android:layout_marginEnd="10dp"
1130                     android:layout_gravity="center_vertical"
1131                     android:src="@drawable/ssl_certificate"
1132                     app:tint="@color/blue_icon_selector"
1133                     tools:ignore="contentDescription" />
1134
1135                 <androidx.appcompat.widget.SwitchCompat
1136                     android:id="@+id/pinned_ip_addresses_switch"
1137                     android:layout_height="wrap_content"
1138                     android:layout_width="match_parent"
1139                     android:layout_marginStart="8dp"
1140                     android:text="@string/pinned_ip_addresses"
1141                     android:textColor="?android:textColorPrimary"
1142                     android:textSize="18sp" />
1143             </LinearLayout>
1144
1145             <!-- Saved IP Addresses -->
1146             <androidx.cardview.widget.CardView
1147                 android:id="@+id/saved_ip_addresses_cardview"
1148                 android:layout_height="wrap_content"
1149                 android:layout_width="match_parent"
1150                 android:layout_marginTop="10dp"
1151                 android:layout_marginStart="10dp"
1152                 android:layout_marginEnd="10dp" >
1153
1154                 <LinearLayout
1155                     android:id="@+id/saved_ip_addresses_linearlayout"
1156                     android:layout_height="wrap_content"
1157                     android:layout_width="match_parent"
1158                     android:orientation="vertical"
1159                     android:padding="10dp" >
1160
1161                     <RadioButton
1162                         android:id="@+id/saved_ip_addresses_radiobutton"
1163                         android:layout_height="wrap_content"
1164                         android:layout_width="match_parent"
1165                         android:text="@string/saved_ip_addresses"
1166                         android:textSize="17sp"
1167                         android:textAllCaps="true"
1168                         android:textStyle="bold"
1169                         android:textColor="?android:textColorPrimary" />
1170
1171                     <TextView
1172                         android:id="@+id/saved_ip_addresses_textview"
1173                         android:layout_height="wrap_content"
1174                         android:layout_width="match_parent"
1175                         android:layout_marginStart="32dp"
1176                         android:textColor="@color/blue_text" />
1177                 </LinearLayout>
1178             </androidx.cardview.widget.CardView>
1179
1180             <androidx.cardview.widget.CardView
1181                 android:id="@+id/current_ip_addresses_cardview"
1182                 android:layout_height="wrap_content"
1183                 android:layout_width="match_parent"
1184                 android:layout_margin="10dp">
1185
1186                 <LinearLayout
1187                     android:id="@+id/current_ip_addresses_linearlayout"
1188                     android:layout_height="wrap_content"
1189                     android:layout_width="match_parent"
1190                     android:orientation="vertical"
1191                     android:padding="10dp" >
1192
1193                     <RadioButton
1194                         android:id="@+id/current_ip_addresses_radiobutton"
1195                         android:layout_height="wrap_content"
1196                         android:layout_width="match_parent"
1197                         android:text="@string/current_ip_addresses"
1198                         android:textSize="17sp"
1199                         android:textAllCaps="true"
1200                         android:textStyle="bold"
1201                         android:textColor="?android:textColorPrimary" />
1202
1203                     <TextView
1204                         android:id="@+id/current_ip_addresses_textview"
1205                         android:layout_height="wrap_content"
1206                         android:layout_width="match_parent"
1207                         android:layout_marginStart="32dp"
1208                         android:textColor="@color/blue_text" />
1209                 </LinearLayout>
1210             </androidx.cardview.widget.CardView>
1211         </LinearLayout>
1212     </LinearLayout>
1213 </ScrollView>