]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/blob - res/layout/domain_settings_fragment.xml
Add an option to delete all domain settings at once. https://redmine.stoutner.com...
[PrivacyBrowserAndroid.git] / res / layout / domain_settings_fragment.xml
1 <?xml version="1.0" encoding="utf-8"?>
2
3 <!--
4   Copyright 2017-2022 Soren Stoutner <soren@stoutner.com>.
5
6   This file is part of Privacy Browser Android <https://www.stoutner.com/privacy-browser-android>.
7
8   Privacy Browser Android is free software: you can redistribute it and/or modify
9   it under the terms of the GNU General Public License as published by
10   the Free Software Foundation, either version 3 of the License, or
11   (at your option) any later version.
12
13   Privacy Browser Android is distributed in the hope that it will be useful,
14   but WITHOUT ANY WARRANTY; without even the implied warranty of
15   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16   GNU General Public License for more details.
17
18   You should have received a copy of the GNU General Public License
19   along with Privacy Browser Android.  If not, see <http://www.gnu.org/licenses/>. -->
20
21 <ScrollView android:id="@+id/domain_settings_scrollview"
22     xmlns:android="http://schemas.android.com/apk/res/android"
23     xmlns:tools="http://schemas.android.com/tools"
24     android:layout_height="wrap_content"
25     android:layout_width="match_parent"
26     android:focusable="true"
27     android:focusableInTouchMode="true"
28     android:descendantFocusability="beforeDescendants"
29     xmlns:app="http://schemas.android.com/apk/res-auto">
30
31     <LinearLayout
32         android:layout_height="wrap_content"
33         android:layout_width="match_parent"
34         android:layout_margin="12dp"
35         android:orientation="vertical"
36         android:divider="?android:attr/dividerVertical" >
37
38         <!-- Domain name. -->
39         <LinearLayout
40             android:layout_height="wrap_content"
41             android:layout_width="match_parent"
42             android:orientation="vertical" >
43
44             <LinearLayout
45                 android:layout_height="wrap_content"
46                 android:layout_width="match_parent"
47                 android:orientation="horizontal" >
48
49                 <ImageView
50                     android:layout_height="wrap_content"
51                     android:layout_width="wrap_content"
52                     android:layout_marginEnd="10dp"
53                     android:layout_marginBottom="12dp"
54                     android:layout_gravity="bottom"
55                     android:src="@drawable/domains"
56                     app:tint="@color/blue_icon"
57                     tools:ignore="contentDescription" />
58
59                 <!-- `TextInputLayout` makes the `android:hint` float above the `EditText`. -->
60                 <com.google.android.material.textfield.TextInputLayout
61                     android:layout_height="wrap_content"
62                     android:layout_width="match_parent"
63                     android:layout_marginStart="6dp" >
64
65                     <!-- `android:inputType="textUri"` disables spell check in the `EditText`. -->
66                     <com.google.android.material.textfield.TextInputEditText
67                         android:id="@+id/domain_settings_name_edittext"
68                         android:layout_width="match_parent"
69                         android:layout_height="wrap_content"
70                         android:hint="@string/domain_name"
71                         android:inputType="textUri" />
72                 </com.google.android.material.textfield.TextInputLayout>
73             </LinearLayout>
74
75             <TextView
76                 android:layout_height="wrap_content"
77                 android:layout_width="match_parent"
78                 android:text="@string/domain_name_instructions"
79                 android:textSize="12sp"
80                 android:layout_marginStart="43dp"
81                 android:layout_marginBottom="14dp" />
82         </LinearLayout>
83
84         <!-- JavaScript. -->
85         <LinearLayout
86             android:layout_height="wrap_content"
87             android:layout_width="match_parent"
88             android:orientation="horizontal" >
89
90             <ImageView
91                 android:id="@+id/javascript_imageview"
92                 android:layout_height="wrap_content"
93                 android:layout_width="wrap_content"
94                 android:layout_marginTop="1dp"
95                 android:layout_marginEnd="10dp"
96                 android:layout_gravity="center_vertical"
97                 tools:ignore="contentDescription" />
98
99             <androidx.appcompat.widget.SwitchCompat
100                 android:id="@+id/javascript_switch"
101                 android:layout_height="wrap_content"
102                 android:layout_width="match_parent"
103                 android:layout_marginStart="8dp"
104                 android:layout_marginTop="14dp"
105                 android:layout_marginBottom="14dp"
106                 android:text="@string/javascript"
107                 android:textColor="?android:textColorPrimary"
108                 android:textSize="18sp" />
109         </LinearLayout>
110
111         <!-- Cookies. -->
112         <LinearLayout
113             android:layout_height="wrap_content"
114             android:layout_width="match_parent"
115             android:orientation="horizontal" >
116
117             <ImageView
118                 android:id="@+id/cookies_imageview"
119                 android:layout_height="wrap_content"
120                 android:layout_width="wrap_content"
121                 android:layout_marginTop="1dp"
122                 android:layout_marginEnd="10dp"
123                 android:layout_gravity="center_vertical"
124                 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:layout_height="wrap_content"
404             android:layout_width="match_parent"
405             android:orientation="vertical"
406             android:layout_marginTop="14dp"
407             android:layout_marginBottom="14dp" >
408
409             <LinearLayout
410                 android:layout_height="wrap_content"
411                 android:layout_width="match_parent"
412                 android:orientation="horizontal" >
413
414                 <ImageView
415                     android:layout_height="wrap_content"
416                     android:layout_width="wrap_content"
417                     android:layout_marginTop="1dp"
418                     android:layout_marginEnd="10dp"
419                     android:layout_gravity="center_vertical"
420                     android:src="@drawable/user_agent"
421                     app:tint="@color/blue_icon"
422                     android:contentDescription="@string/user_agent" />
423
424                 <Spinner
425                     android:id="@+id/user_agent_spinner"
426                     android:layout_height="wrap_content"
427                     android:layout_width="match_parent" />
428             </LinearLayout>
429
430             <TextView
431                 android:id="@+id/user_agent_textview"
432                 android:layout_height="wrap_content"
433                 android:layout_width="match_parent"
434                 android:layout_marginStart="45dp"
435                 android:layout_marginEnd="36dp"
436                 android:textSize="13sp" />
437
438             <EditText
439                 android:id="@+id/custom_user_agent_edittext"
440                 android:layout_height="wrap_content"
441                 android:layout_width="match_parent"
442                 android:layout_marginStart="40dp"
443                 android:layout_marginEnd="60dp"
444                 android:inputType="textUri"
445                 android:hint="@string/custom_user_agent"
446                 android:importantForAutofill="no" />
447         </LinearLayout>
448
449         <!-- Font Size. -->
450         <LinearLayout
451             android:layout_height="wrap_content"
452             android:layout_width="match_parent"
453             android:orientation="vertical"
454             android:layout_marginTop="14dp"
455             android:layout_marginBottom="14dp" >
456
457             <LinearLayout
458                 android:layout_height="wrap_content"
459                 android:layout_width="match_parent"
460                 android:orientation="horizontal" >
461
462                 <ImageView
463                     android:layout_height="wrap_content"
464                     android:layout_width="wrap_content"
465                     android:layout_marginTop="1dp"
466                     android:layout_marginEnd="10dp"
467                     android:layout_gravity="center_vertical"
468                     android:src="@drawable/font_size"
469                     app:tint="@color/blue_icon"
470                     android:contentDescription="@string/font_size" />
471
472                 <Spinner
473                     android:id="@+id/font_size_spinner"
474                     android:layout_height="wrap_content"
475                     android:layout_width="match_parent" />
476             </LinearLayout>
477
478             <TextView
479                 android:id="@+id/default_font_size_textview"
480                 android:layout_height="wrap_content"
481                 android:layout_width="match_parent"
482                 android:layout_marginStart="45dp"
483                 android:layout_marginEnd="36dp"
484                 android:textSize="13sp" />
485
486             <EditText
487                 android:id="@+id/custom_font_size_edittext"
488                 android:layout_height="wrap_content"
489                 android:layout_width="match_parent"
490                 android:layout_marginStart="40dp"
491                 android:layout_marginEnd="60dp"
492                 android:inputType="number"
493                 android:hint="@string/font_size"
494                 android:importantForAutofill="no" />
495         </LinearLayout>
496
497         <!-- Swipe to Refresh. -->
498         <LinearLayout
499             android:layout_height="wrap_content"
500             android:layout_width="match_parent"
501             android:orientation="vertical"
502             android:layout_marginTop="14dp"
503             android:layout_marginBottom="14dp" >
504
505             <LinearLayout
506                 android:layout_height="wrap_content"
507                 android:layout_width="match_parent"
508                 android:orientation="horizontal" >
509
510                 <ImageView
511                     android:id="@+id/swipe_to_refresh_imageview"
512                     android:layout_height="wrap_content"
513                     android:layout_width="wrap_content"
514                     android:layout_marginTop="1dp"
515                     android:layout_marginEnd="10dp"
516                     android:layout_gravity="center_vertical"
517                     android:src="@drawable/refresh_enabled"
518                     app:tint="@color/blue_icon_selector"
519                     android:contentDescription="@string/swipe_to_refresh" />
520
521                 <Spinner
522                     android:id="@+id/swipe_to_refresh_spinner"
523                     android:layout_height="wrap_content"
524                     android:layout_width="match_parent" />
525             </LinearLayout>
526
527             <TextView
528                 android:id="@+id/swipe_to_refresh_textview"
529                 android:layout_height="wrap_content"
530                 android:layout_width="match_parent"
531                 android:layout_marginStart="45dp"
532                 android:layout_marginEnd="36dp"
533                 android:textSize="13sp" />
534         </LinearLayout>
535
536         <!-- WebView Theme. -->
537         <LinearLayout
538             android:id="@+id/webview_theme_linearlayout"
539             android:layout_height="wrap_content"
540             android:layout_width="match_parent"
541             android:orientation="vertical"
542             android:layout_marginTop="14dp"
543             android:layout_marginBottom="14dp" >
544
545             <LinearLayout
546                 android:layout_height="wrap_content"
547                 android:layout_width="match_parent"
548                 android:orientation="horizontal" >
549
550                 <ImageView
551                     android:id="@+id/webview_theme_imageview"
552                     android:layout_height="wrap_content"
553                     android:layout_width="wrap_content"
554                     android:layout_marginTop="1dp"
555                     android:layout_marginEnd="10dp"
556                     android:layout_gravity="center_vertical"
557                     android:src="@drawable/webview_light_theme"
558                     app:tint="@color/blue_icon_selector"
559                     android:contentDescription="@string/webview_theme" />
560
561                 <Spinner
562                     android:id="@+id/webview_theme_spinner"
563                     android:layout_height="wrap_content"
564                     android:layout_width="match_parent" />
565             </LinearLayout>
566
567             <TextView
568                 android:id="@+id/webview_theme_textview"
569                 android:layout_height="wrap_content"
570                 android:layout_width="match_parent"
571                 android:layout_marginStart="45dp"
572                 android:layout_marginEnd="36dp"
573                 android:textSize="13sp" />
574         </LinearLayout>
575
576         <!-- Wide Viewport. -->
577         <LinearLayout
578             android:layout_height="wrap_content"
579             android:layout_width="match_parent"
580             android:orientation="vertical"
581             android:layout_marginTop="14dp"
582             android:layout_marginBottom="14dp" >
583
584             <LinearLayout
585                 android:layout_height="wrap_content"
586                 android:layout_width="match_parent"
587                 android:orientation="horizontal" >
588
589                 <ImageView
590                     android:id="@+id/wide_viewport_imageview"
591                     android:layout_height="wrap_content"
592                     android:layout_width="wrap_content"
593                     android:layout_marginTop="1dp"
594                     android:layout_marginEnd="10dp"
595                     android:layout_gravity="center_vertical"
596                     android:src="@drawable/wide_viewport_enabled"
597                     app:tint="@color/blue_icon_selector"
598                     android:contentDescription="@string/wide_viewport" />
599
600                 <Spinner
601                     android:id="@+id/wide_viewport_spinner"
602                     android:layout_height="wrap_content"
603                     android:layout_width="match_parent" />
604             </LinearLayout>
605
606             <TextView
607                 android:id="@+id/wide_viewport_textview"
608                 android:layout_height="wrap_content"
609                 android:layout_width="match_parent"
610                 android:layout_marginStart="45dp"
611                 android:layout_marginEnd="36dp"
612                 android:textSize="13sp" />
613         </LinearLayout>
614
615         <!-- Display Images. -->
616         <LinearLayout
617             android:layout_height="wrap_content"
618             android:layout_width="match_parent"
619             android:orientation="vertical"
620             android:layout_marginTop="14dp"
621             android:layout_marginBottom="14dp" >
622
623             <LinearLayout
624                 android:layout_height="wrap_content"
625                 android:layout_width="match_parent"
626                 android:orientation="horizontal" >
627
628                 <ImageView
629                     android:id="@+id/display_webpage_images_imageview"
630                     android:layout_height="wrap_content"
631                     android:layout_width="wrap_content"
632                     android:layout_marginTop="1dp"
633                     android:layout_marginEnd="10dp"
634                     android:layout_gravity="center_vertical"
635                     android:src="@drawable/images_enabled"
636                     app:tint="@color/blue_icon_selector"
637                     android:contentDescription="@string/display_webpage_images" />
638
639                 <Spinner
640                     android:id="@+id/display_webpage_images_spinner"
641                     android:layout_height="wrap_content"
642                     android:layout_width="match_parent" />
643             </LinearLayout>
644
645             <TextView
646                 android:id="@+id/display_webpage_images_textview"
647                 android:layout_height="wrap_content"
648                 android:layout_width="match_parent"
649                 android:layout_marginStart="45dp"
650                 android:layout_marginEnd="36dp"
651                 android:textSize="13sp" />
652         </LinearLayout>
653
654         <!-- Pinned SSL Certificate -->
655         <LinearLayout
656             android:layout_height="wrap_content"
657             android:layout_width="match_parent"
658             android:orientation="vertical"
659             android:layout_marginTop="18dp"
660             android:layout_marginBottom="18dp" >
661
662             <!-- Switch -->
663             <LinearLayout
664                 android:layout_height="wrap_content"
665                 android:layout_width="match_parent"
666                 android:orientation="horizontal" >
667
668                 <ImageView
669                     android:id="@+id/pinned_ssl_certificate_imageview"
670                     android:layout_height="wrap_content"
671                     android:layout_width="wrap_content"
672                     android:layout_marginTop="1dp"
673                     android:layout_marginEnd="10dp"
674                     android:layout_gravity="center_vertical"
675                     android:src="@drawable/ssl_certificate"
676                     app:tint="@color/blue_icon_selector"
677                     tools:ignore="contentDescription" />
678
679                 <androidx.appcompat.widget.SwitchCompat
680                     android:id="@+id/pinned_ssl_certificate_switch"
681                     android:layout_height="wrap_content"
682                     android:layout_width="match_parent"
683                     android:layout_marginStart="8dp"
684                     android:text="@string/pinned_ssl_certificate"
685                     android:textColor="?android:textColorPrimary"
686                     android:textSize="18sp"
687                     tools:ignore="TooManyViews" />
688             </LinearLayout>
689
690             <!-- Saved Certificate -->
691             <androidx.cardview.widget.CardView
692                 android:id="@+id/saved_ssl_certificate_cardview"
693                 android:layout_height="wrap_content"
694                 android:layout_width="match_parent"
695                 android:layout_marginTop="10dp"
696                 android:layout_marginStart="10dp"
697                 android:layout_marginEnd="10dp" >
698
699                 <LinearLayout
700                     android:id="@+id/saved_ssl_certificate_linearlayout"
701                     android:layout_height="wrap_content"
702                     android:layout_width="match_parent"
703                     android:orientation="vertical"
704                     android:padding="10dp" >
705
706                     <RadioButton
707                         android:id="@+id/saved_ssl_certificate_radiobutton"
708                         android:layout_height="wrap_content"
709                         android:layout_width="match_parent"
710                         android:text="@string/saved_ssl_certificate"
711                         android:textSize="17sp"
712                         android:textAllCaps="true"
713                         android:textStyle="bold"
714                         android:textColor="?android:textColorPrimary" />
715
716                     <LinearLayout
717                         android:layout_height="wrap_content"
718                         android:layout_width="match_parent"
719                         android:layout_marginStart="32dp"
720                         android:orientation="vertical" >
721
722                         <!-- Saved Certificate Issued To. -->
723                         <TextView
724                             android:layout_height="wrap_content"
725                             android:layout_width="match_parent"
726                             android:text="@string/issued_to"
727                             android:textAllCaps="true"
728                             android:textStyle="bold"
729                             android:textColor="@color/blue_title_text" />
730
731                         <TextView
732                             android:id="@+id/saved_ssl_certificate_issued_to_cname"
733                             android:layout_height="wrap_content"
734                             android:layout_width="match_parent" />
735
736                         <TextView
737                             android:id="@+id/saved_ssl_certificate_issued_to_oname"
738                             android:layout_height="wrap_content"
739                             android:layout_width="match_parent" />
740
741                         <TextView
742                             android:id="@+id/saved_ssl_certificate_issued_to_uname"
743                             android:layout_height="wrap_content"
744                             android:layout_width="match_parent"/>
745
746                         <!-- Saved Certificate Issued By. -->
747                         <TextView
748                             android:layout_height="wrap_content"
749                             android:layout_width="match_parent"
750                             android:layout_marginTop="15dp"
751                             android:text="@string/issued_by"
752                             android:textAllCaps="true"
753                             android:textStyle="bold"
754                             android:textColor="@color/blue_title_text"/>
755
756                         <TextView
757                             android:id="@+id/saved_ssl_certificate_issued_by_cname"
758                             android:layout_height="wrap_content"
759                             android:layout_width="match_parent" />
760
761                         <TextView
762                             android:id="@+id/saved_ssl_certificate_issued_by_oname"
763                             android:layout_height="wrap_content"
764                             android:layout_width="match_parent" />
765
766                         <TextView
767                             android:id="@+id/saved_ssl_certificate_issued_by_uname"
768                             android:layout_height="wrap_content"
769                             android:layout_width="match_parent" />
770
771                         <!-- Saved Certificate Valid Dates. -->
772                         <TextView
773                             android:layout_height="wrap_content"
774                             android:layout_width="match_parent"
775                             android:layout_marginTop="15dp"
776                             android:text="@string/valid_dates"
777                             android:textAllCaps="true"
778                             android:textStyle="bold"
779                             android:textColor="@color/blue_title_text"/>
780
781                         <TextView
782                             android:id="@+id/saved_ssl_certificate_start_date"
783                             android:layout_height="wrap_content"
784                             android:layout_width="match_parent" />
785
786                         <TextView
787                             android:id="@+id/saved_ssl_certificate_end_date"
788                             android:layout_height="wrap_content"
789                             android:layout_width="match_parent" />
790                     </LinearLayout>
791                 </LinearLayout>
792             </androidx.cardview.widget.CardView>
793
794             <!-- Current Website Certificate -->
795             <androidx.cardview.widget.CardView
796                 android:id="@+id/current_website_certificate_cardview"
797                 android:layout_height="wrap_content"
798                 android:layout_width="match_parent"
799                 android:layout_margin="10dp" >
800
801                 <LinearLayout
802                     android:id="@+id/current_website_certificate_linearlayout"
803                     android:layout_height="wrap_content"
804                     android:layout_width="match_parent"
805                     android:orientation="vertical"
806                     android:padding="10dp" >
807
808                     <RadioButton
809                         android:id="@+id/current_website_certificate_radiobutton"
810                         android:layout_height="wrap_content"
811                         android:layout_width="match_parent"
812                         android:text="@string/current_website_ssl_certificate"
813                         android:textSize="17sp"
814                         android:textAllCaps="true"
815                         android:textStyle="bold"
816                         android:textColor="?android:textColorPrimary" />
817
818                     <LinearLayout
819                         android:layout_height="wrap_content"
820                         android:layout_width="match_parent"
821                         android:layout_marginStart="32dp"
822                         android:orientation="vertical" >
823
824                         <!-- Current Website Certificate Issued To. -->
825                         <TextView
826                             android:layout_height="wrap_content"
827                             android:layout_width="match_parent"
828                             android:text="@string/issued_to"
829                             android:textAllCaps="true"
830                             android:textStyle="bold"
831                             android:textColor="@color/blue_title_text" />
832
833                         <TextView
834                             android:id="@+id/current_website_certificate_issued_to_cname"
835                             android:layout_height="wrap_content"
836                             android:layout_width="match_parent" />
837
838                         <TextView
839                             android:id="@+id/current_website_certificate_issued_to_oname"
840                             android:layout_height="wrap_content"
841                             android:layout_width="match_parent" />
842
843                         <TextView
844                             android:id="@+id/current_website_certificate_issued_to_uname"
845                             android:layout_height="wrap_content"
846                             android:layout_width="match_parent" />
847
848                         <!-- Current Website Certificate Issued By. -->
849                         <TextView
850                             android:layout_height="wrap_content"
851                             android:layout_width="match_parent"
852                             android:layout_marginTop="15dp"
853                             android:text="@string/issued_by"
854                             android:textAllCaps="true"
855                             android:textStyle="bold"
856                             android:textColor="@color/blue_title_text" />
857
858                         <TextView
859                             android:id="@+id/current_website_certificate_issued_by_cname"
860                             android:layout_height="wrap_content"
861                             android:layout_width="match_parent" />
862
863                         <TextView
864                             android:id="@+id/current_website_certificate_issued_by_oname"
865                             android:layout_height="wrap_content"
866                             android:layout_width="match_parent" />
867
868                         <TextView
869                             android:id="@+id/current_website_certificate_issued_by_uname"
870                             android:layout_height="wrap_content"
871                             android:layout_width="match_parent" />
872
873                         <!-- Current Website Certificate Valid Dates. -->
874                         <TextView
875                             android:layout_height="wrap_content"
876                             android:layout_width="match_parent"
877                             android:layout_marginTop="15dp"
878                             android:text="@string/valid_dates"
879                             android:textAllCaps="true"
880                             android:textStyle="bold"
881                             android:textColor="@color/blue_title_text" />
882
883                         <TextView
884                             android:id="@+id/current_website_certificate_start_date"
885                             android:layout_height="wrap_content"
886                             android:layout_width="match_parent" />
887
888                         <TextView
889                             android:id="@+id/current_website_certificate_end_date"
890                             android:layout_height="wrap_content"
891                             android:layout_width="match_parent" />
892                     </LinearLayout>
893                 </LinearLayout>
894             </androidx.cardview.widget.CardView>
895
896             <!-- Load An Encrypted Website Instructions. -->
897             <TextView
898                 android:id="@+id/no_current_website_certificate"
899                 android:layout_height="wrap_content"
900                 android:layout_width="match_parent"
901                 android:layout_marginTop="10dp"
902                 android:layout_marginBottom="10dp"
903                 android:layout_marginStart="40dp"
904                 android:layout_marginEnd="40dp"
905                 android:gravity="center_horizontal"
906                 android:text="@string/load_an_encrypted_website" />
907         </LinearLayout>
908
909         <!-- Pinned IP Addresses -->
910         <LinearLayout
911             android:layout_height="wrap_content"
912             android:layout_width="match_parent"
913             android:orientation="vertical"
914             android:layout_marginTop="18dp"
915             android:layout_marginBottom="18dp" >
916
917             <!-- Switch -->
918             <LinearLayout
919                 android:layout_height="wrap_content"
920                 android:layout_width="match_parent"
921                 android:orientation="horizontal" >
922
923                 <ImageView
924                     android:id="@+id/pinned_ip_addresses_imageview"
925                     android:layout_height="wrap_content"
926                     android:layout_width="wrap_content"
927                     android:layout_marginTop="1dp"
928                     android:layout_marginEnd="10dp"
929                     android:layout_gravity="center_vertical"
930                     android:src="@drawable/ssl_certificate"
931                     app:tint="@color/blue_icon_selector"
932                     tools:ignore="contentDescription" />
933
934                 <androidx.appcompat.widget.SwitchCompat
935                     android:id="@+id/pinned_ip_addresses_switch"
936                     android:layout_height="wrap_content"
937                     android:layout_width="match_parent"
938                     android:layout_marginStart="8dp"
939                     android:text="@string/pinned_ip_addresses"
940                     android:textColor="?android:textColorPrimary"
941                     android:textSize="18sp" />
942             </LinearLayout>
943
944             <!-- Saved IP Addresses -->
945             <androidx.cardview.widget.CardView
946                 android:id="@+id/saved_ip_addresses_cardview"
947                 android:layout_height="wrap_content"
948                 android:layout_width="match_parent"
949                 android:layout_marginTop="10dp"
950                 android:layout_marginStart="10dp"
951                 android:layout_marginEnd="10dp" >
952
953                 <LinearLayout
954                     android:id="@+id/saved_ip_addresses_linearlayout"
955                     android:layout_height="wrap_content"
956                     android:layout_width="match_parent"
957                     android:orientation="vertical"
958                     android:padding="10dp" >
959
960                     <RadioButton
961                         android:id="@+id/saved_ip_addresses_radiobutton"
962                         android:layout_height="wrap_content"
963                         android:layout_width="match_parent"
964                         android:text="@string/saved_ip_addresses"
965                         android:textSize="17sp"
966                         android:textAllCaps="true"
967                         android:textStyle="bold"
968                         android:textColor="?android:textColorPrimary" />
969
970                     <TextView
971                         android:id="@+id/saved_ip_addresses_textview"
972                         android:layout_height="wrap_content"
973                         android:layout_width="match_parent"
974                         android:layout_marginStart="32dp"
975                         android:textColor="@color/blue_text" />
976                 </LinearLayout>
977             </androidx.cardview.widget.CardView>
978
979             <androidx.cardview.widget.CardView
980                 android:id="@+id/current_ip_addresses_cardview"
981                 android:layout_height="wrap_content"
982                 android:layout_width="match_parent"
983                 android:layout_margin="10dp">
984
985                 <LinearLayout
986                     android:id="@+id/current_ip_addresses_linearlayout"
987                     android:layout_height="wrap_content"
988                     android:layout_width="match_parent"
989                     android:orientation="vertical"
990                     android:padding="10dp" >
991
992                     <RadioButton
993                         android:id="@+id/current_ip_addresses_radiobutton"
994                         android:layout_height="wrap_content"
995                         android:layout_width="match_parent"
996                         android:text="@string/current_ip_addresses"
997                         android:textSize="17sp"
998                         android:textAllCaps="true"
999                         android:textStyle="bold"
1000                         android:textColor="?android:textColorPrimary" />
1001
1002                     <TextView
1003                         android:id="@+id/current_ip_addresses_textview"
1004                         android:layout_height="wrap_content"
1005                         android:layout_width="match_parent"
1006                         android:layout_marginStart="32dp"
1007                         android:textColor="@color/blue_text" />
1008                 </LinearLayout>
1009             </androidx.cardview.widget.CardView>
1010         </LinearLayout>
1011     </LinearLayout>
1012 </ScrollView>