Add controls for the viewport. https://redmine.stoutner.com/issues/399
[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         <!-- Wide Viewport. -->
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/wide_viewport_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/wide_viewport" />
565
566                 <Spinner
567                     android:id="@+id/wide_viewport_spinner"
568                     android:layout_height="wrap_content"
569                     android:layout_width="match_parent" />
570             </LinearLayout>
571
572             <TextView
573                 android:id="@+id/wide_viewport_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         <!-- Display Images. -->
582         <LinearLayout
583             android:layout_height="wrap_content"
584             android:layout_width="match_parent"
585             android:orientation="vertical"
586             android:layout_marginTop="14dp"
587             android:layout_marginBottom="14dp" >
588
589             <LinearLayout
590                 android:layout_height="wrap_content"
591                 android:layout_width="match_parent"
592                 android:orientation="horizontal" >
593
594                 <ImageView
595                     android:id="@+id/display_webpage_images_imageview"
596                     android:layout_height="wrap_content"
597                     android:layout_width="wrap_content"
598                     android:layout_marginTop="1dp"
599                     android:layout_marginEnd="10dp"
600                     android:layout_gravity="center_vertical"
601                     android:contentDescription="@string/display_webpage_images" />
602
603                 <Spinner
604                     android:id="@+id/display_webpage_images_spinner"
605                     android:layout_height="wrap_content"
606                     android:layout_width="match_parent" />
607             </LinearLayout>
608
609             <TextView
610                 android:id="@+id/display_webpage_images_textview"
611                 android:layout_height="match_parent"
612                 android:layout_width="match_parent"
613                 android:layout_marginStart="45dp"
614                 android:layout_marginEnd="36dp"
615                 android:textSize="13sp" />
616         </LinearLayout>
617
618         <!-- Pinned SSL Certificate -->
619         <LinearLayout
620             android:layout_height="wrap_content"
621             android:layout_width="match_parent"
622             android:orientation="vertical"
623             android:layout_marginTop="18dp"
624             android:layout_marginBottom="18dp" >
625
626             <!-- Switch -->
627             <LinearLayout
628                 android:layout_height="wrap_content"
629                 android:layout_width="match_parent"
630                 android:orientation="horizontal" >
631
632                 <ImageView
633                     android:id="@+id/pinned_ssl_certificate_imageview"
634                     android:layout_height="wrap_content"
635                     android:layout_width="wrap_content"
636                     android:layout_marginTop="1dp"
637                     android:layout_marginEnd="10dp"
638                     android:layout_gravity="center_vertical"
639                     tools:ignore="contentDescription" />
640
641                 <Switch
642                     android:id="@+id/pinned_ssl_certificate_switch"
643                     android:layout_height="wrap_content"
644                     android:layout_width="match_parent"
645                     android:layout_marginStart="8dp"
646                     android:text="@string/pinned_ssl_certificate"
647                     android:textColor="?android:textColorPrimary"
648                     android:textSize="18sp" />
649             </LinearLayout>
650
651             <!-- Saved Certificate -->
652             <androidx.cardview.widget.CardView
653                 android:id="@+id/saved_ssl_certificate_cardview"
654                 android:layout_height="wrap_content"
655                 android:layout_width="match_parent"
656                 android:layout_marginTop="10dp"
657                 android:layout_marginStart="10dp"
658                 android:layout_marginEnd="10dp" >
659
660                 <LinearLayout
661                     android:id="@+id/saved_ssl_certificate_linearlayout"
662                     android:layout_height="wrap_content"
663                     android:layout_width="match_parent"
664                     android:orientation="vertical"
665                     android:padding="10dp" >
666
667                     <RadioButton
668                         android:id="@+id/saved_ssl_certificate_radiobutton"
669                         android:layout_height="wrap_content"
670                         android:layout_width="match_parent"
671                         android:text="@string/saved_ssl_certificate"
672                         android:textSize="17sp"
673                         android:textAllCaps="true"
674                         android:textStyle="bold"
675                         android:textColor="?android:textColorPrimary" />
676
677                     <LinearLayout
678                         android:layout_height="wrap_content"
679                         android:layout_width="match_parent"
680                         android:layout_marginStart="32dp"
681                         android:orientation="vertical" >
682
683                         <!-- Saved Certificate Issued To. -->
684                         <TextView
685                             android:layout_height="wrap_content"
686                             android:layout_width="match_parent"
687                             android:text="@string/issued_to"
688                             android:textAllCaps="true"
689                             android:textStyle="bold"
690                             android:textColor="?attr/sslTitle" />
691
692                         <TextView
693                             android:id="@+id/saved_ssl_certificate_issued_to_cname"
694                             android:layout_height="wrap_content"
695                             android:layout_width="match_parent" />
696
697                         <TextView
698                             android:id="@+id/saved_ssl_certificate_issued_to_oname"
699                             android:layout_height="wrap_content"
700                             android:layout_width="match_parent" />
701
702                         <TextView
703                             android:id="@+id/saved_ssl_certificate_issued_to_uname"
704                             android:layout_height="wrap_content"
705                             android:layout_width="match_parent"/>
706
707                         <!-- Saved Certificate Issued By. -->
708                         <TextView
709                             android:layout_height="wrap_content"
710                             android:layout_width="match_parent"
711                             android:layout_marginTop="15dp"
712                             android:text="@string/issued_by"
713                             android:textAllCaps="true"
714                             android:textStyle="bold"
715                             android:textColor="?attr/sslTitle"/>
716
717                         <TextView
718                             android:id="@+id/saved_ssl_certificate_issued_by_cname"
719                             android:layout_height="wrap_content"
720                             android:layout_width="match_parent" />
721
722                         <TextView
723                             android:id="@+id/saved_ssl_certificate_issued_by_oname"
724                             android:layout_height="wrap_content"
725                             android:layout_width="match_parent" />
726
727                         <TextView
728                             android:id="@+id/saved_ssl_certificate_issued_by_uname"
729                             android:layout_height="wrap_content"
730                             android:layout_width="match_parent" />
731
732                         <!-- Saved Certificate Valid Dates. -->
733                         <TextView
734                             android:layout_height="wrap_content"
735                             android:layout_width="match_parent"
736                             android:layout_marginTop="15dp"
737                             android:text="@string/valid_dates"
738                             android:textAllCaps="true"
739                             android:textStyle="bold"
740                             android:textColor="?attr/sslTitle"/>
741
742                         <TextView
743                             android:id="@+id/saved_ssl_certificate_start_date"
744                             android:layout_height="wrap_content"
745                             android:layout_width="match_parent" />
746
747                         <TextView
748                             android:id="@+id/saved_ssl_certificate_end_date"
749                             android:layout_height="wrap_content"
750                             android:layout_width="match_parent" />
751                     </LinearLayout>
752                 </LinearLayout>
753             </androidx.cardview.widget.CardView>
754
755             <!-- Current Website Certificate -->
756             <androidx.cardview.widget.CardView
757                 android:id="@+id/current_website_certificate_cardview"
758                 android:layout_height="wrap_content"
759                 android:layout_width="match_parent"
760                 android:layout_margin="10dp" >
761
762                 <LinearLayout
763                     android:id="@+id/current_website_certificate_linearlayout"
764                     android:layout_height="wrap_content"
765                     android:layout_width="match_parent"
766                     android:orientation="vertical"
767                     android:padding="10dp" >
768
769                     <RadioButton
770                         android:id="@+id/current_website_certificate_radiobutton"
771                         android:layout_height="wrap_content"
772                         android:layout_width="match_parent"
773                         android:text="@string/current_website_ssl_certificate"
774                         android:textSize="17sp"
775                         android:textAllCaps="true"
776                         android:textStyle="bold"
777                         android:textColor="?android:textColorPrimary" />
778
779                     <LinearLayout
780                         android:layout_height="wrap_content"
781                         android:layout_width="match_parent"
782                         android:layout_marginStart="32dp"
783                         android:orientation="vertical" >
784
785                         <!-- Current Website Certificate Issued To. -->
786                         <TextView
787                             android:layout_height="wrap_content"
788                             android:layout_width="match_parent"
789                             android:text="@string/issued_to"
790                             android:textAllCaps="true"
791                             android:textStyle="bold"
792                             android:textColor="?attr/sslTitle" />
793
794                         <TextView
795                             android:id="@+id/current_website_certificate_issued_to_cname"
796                             android:layout_height="wrap_content"
797                             android:layout_width="match_parent" />
798
799                         <TextView
800                             android:id="@+id/current_website_certificate_issued_to_oname"
801                             android:layout_height="wrap_content"
802                             android:layout_width="match_parent" />
803
804                         <TextView
805                             android:id="@+id/current_website_certificate_issued_to_uname"
806                             android:layout_height="wrap_content"
807                             android:layout_width="match_parent" />
808
809                         <!-- Current Website Certificate Issued By. -->
810                         <TextView
811                             android:layout_height="wrap_content"
812                             android:layout_width="match_parent"
813                             android:layout_marginTop="15dp"
814                             android:text="@string/issued_by"
815                             android:textAllCaps="true"
816                             android:textStyle="bold"
817                             android:textColor="?attr/sslTitle" />
818
819                         <TextView
820                             android:id="@+id/current_website_certificate_issued_by_cname"
821                             android:layout_height="wrap_content"
822                             android:layout_width="match_parent" />
823
824                         <TextView
825                             android:id="@+id/current_website_certificate_issued_by_oname"
826                             android:layout_height="wrap_content"
827                             android:layout_width="match_parent" />
828
829                         <TextView
830                             android:id="@+id/current_website_certificate_issued_by_uname"
831                             android:layout_height="wrap_content"
832                             android:layout_width="match_parent" />
833
834                         <!-- Current Website Certificate Valid Dates. -->
835                         <TextView
836                             android:layout_height="wrap_content"
837                             android:layout_width="match_parent"
838                             android:layout_marginTop="15dp"
839                             android:text="@string/valid_dates"
840                             android:textAllCaps="true"
841                             android:textStyle="bold"
842                             android:textColor="?attr/sslTitle" />
843
844                         <TextView
845                             android:id="@+id/current_website_certificate_start_date"
846                             android:layout_height="wrap_content"
847                             android:layout_width="match_parent" />
848
849                         <TextView
850                             android:id="@+id/current_website_certificate_end_date"
851                             android:layout_height="wrap_content"
852                             android:layout_width="match_parent" />
853                     </LinearLayout>
854                 </LinearLayout>
855             </androidx.cardview.widget.CardView>
856
857             <!-- Load An Encrypted Website Instructions. -->
858             <TextView
859                 android:id="@+id/no_current_website_certificate"
860                 android:layout_height="wrap_content"
861                 android:layout_width="match_parent"
862                 android:layout_marginTop="10dp"
863                 android:layout_marginBottom="10dp"
864                 android:layout_marginStart="40dp"
865                 android:layout_marginEnd="40dp"
866                 android:gravity="center_horizontal"
867                 android:text="@string/load_an_encrypted_website" />
868         </LinearLayout>
869
870         <!-- Pinned IP Addresses -->
871         <LinearLayout
872             android:layout_height="wrap_content"
873             android:layout_width="match_parent"
874             android:orientation="vertical"
875             android:layout_marginTop="18dp"
876             android:layout_marginBottom="18dp" >
877
878             <!-- Switch -->
879             <LinearLayout
880                 android:layout_height="wrap_content"
881                 android:layout_width="match_parent"
882                 android:orientation="horizontal" >
883
884                 <ImageView
885                     android:id="@+id/pinned_ip_addresses_imageview"
886                     android:layout_height="wrap_content"
887                     android:layout_width="wrap_content"
888                     android:layout_marginTop="1dp"
889                     android:layout_marginEnd="10dp"
890                     android:layout_gravity="center_vertical"
891                     tools:ignore="contentDescription" />
892
893                 <Switch
894                     android:id="@+id/pinned_ip_addresses_switch"
895                     android:layout_height="wrap_content"
896                     android:layout_width="match_parent"
897                     android:layout_marginStart="8dp"
898                     android:text="@string/pinned_ip_addresses"
899                     android:textColor="?android:textColorPrimary"
900                     android:textSize="18sp" />
901             </LinearLayout>
902
903             <!-- Saved IP Addresses -->
904             <androidx.cardview.widget.CardView
905                 android:id="@+id/saved_ip_addresses_cardview"
906                 android:layout_height="wrap_content"
907                 android:layout_width="match_parent"
908                 android:layout_marginTop="10dp"
909                 android:layout_marginStart="10dp"
910                 android:layout_marginEnd="10dp" >
911
912                 <LinearLayout
913                     android:id="@+id/saved_ip_addresses_linearlayout"
914                     android:layout_height="wrap_content"
915                     android:layout_width="match_parent"
916                     android:orientation="vertical"
917                     android:padding="10dp" >
918
919                     <RadioButton
920                         android:id="@+id/saved_ip_addresses_radiobutton"
921                         android:layout_height="wrap_content"
922                         android:layout_width="match_parent"
923                         android:text="@string/saved_ip_addresses"
924                         android:textSize="17sp"
925                         android:textAllCaps="true"
926                         android:textStyle="bold"
927                         android:textColor="?android:textColorPrimary" />
928
929                     <TextView
930                         android:id="@+id/saved_ip_addresses_textview"
931                         android:layout_height="wrap_content"
932                         android:layout_width="match_parent"
933                         android:layout_marginStart="32dp"
934                         android:textColor="?attr/aboutText" />
935                 </LinearLayout>
936             </androidx.cardview.widget.CardView>
937
938             <androidx.cardview.widget.CardView
939                 android:id="@+id/current_ip_addresses_cardview"
940                 android:layout_height="wrap_content"
941                 android:layout_width="match_parent"
942                 android:layout_margin="10dp">
943
944                 <LinearLayout
945                     android:id="@+id/current_ip_addresses_linearlayout"
946                     android:layout_height="wrap_content"
947                     android:layout_width="match_parent"
948                     android:orientation="vertical"
949                     android:padding="10dp" >
950
951                     <RadioButton
952                         android:id="@+id/current_ip_addresses_radiobutton"
953                         android:layout_height="wrap_content"
954                         android:layout_width="match_parent"
955                         android:text="@string/current_ip_addresses"
956                         android:textSize="17sp"
957                         android:textAllCaps="true"
958                         android:textStyle="bold"
959                         android:textColor="?android:textColorPrimary" />
960
961                     <TextView
962                         android:id="@+id/current_ip_addresses_textview"
963                         android:layout_height="wrap_content"
964                         android:layout_width="match_parent"
965                         android:layout_marginStart="32dp"
966                         android:textColor="?attr/aboutText" />
967                 </LinearLayout>
968             </androidx.cardview.widget.CardView>
969         </LinearLayout>
970     </LinearLayout>
971 </ScrollView>