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