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