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