1 <?xml version="1.0" encoding="utf-8"?>
4 Copyright 2017-2023 Soren Stoutner <soren@stoutner.com>.
6 This file is part of Privacy Browser Android <https://www.stoutner.com/privacy-browser-android>.
8 Privacy Browser Android is free software: you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation, either version 3 of the License, or
11 (at your option) any later version.
13 Privacy Browser Android is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with Privacy Browser Android. If not, see <http://www.gnu.org/licenses/>. -->
21 <ScrollView android:id="@+id/domain_settings_scrollview"
22 xmlns:android="http://schemas.android.com/apk/res/android"
23 xmlns:tools="http://schemas.android.com/tools"
24 android:layout_height="wrap_content"
25 android:layout_width="match_parent"
26 android:focusable="true"
27 android:focusableInTouchMode="true"
28 android:descendantFocusability="beforeDescendants"
29 xmlns:app="http://schemas.android.com/apk/res-auto">
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" >
40 android:layout_height="wrap_content"
41 android:layout_width="match_parent"
42 android:orientation="vertical" >
45 android:layout_height="wrap_content"
46 android:layout_width="match_parent"
47 android:orientation="horizontal" >
50 android:layout_height="wrap_content"
51 android:layout_width="wrap_content"
52 android:layout_marginEnd="10dp"
53 android:layout_marginBottom="12dp"
54 android:layout_gravity="bottom"
55 android:src="@drawable/domains"
56 app:tint="@color/blue_icon"
57 tools:ignore="contentDescription" />
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" >
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>
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" />
86 android:layout_height="wrap_content"
87 android:layout_width="match_parent"
88 android:orientation="horizontal" >
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" />
99 <androidx.appcompat.widget.SwitchCompat
100 android:id="@+id/javascript_switch"
101 android:layout_height="wrap_content"
102 android:layout_width="match_parent"
103 android:layout_marginStart="8dp"
104 android:layout_marginTop="14dp"
105 android:layout_marginBottom="14dp"
106 android:text="@string/javascript"
107 android:textColor="?android:textColorPrimary"
108 android:textSize="18sp" />
113 android:layout_height="wrap_content"
114 android:layout_width="match_parent"
115 android:orientation="horizontal" >
118 android:id="@+id/cookies_imageview"
119 android:layout_height="wrap_content"
120 android:layout_width="wrap_content"
121 android:layout_marginTop="1dp"
122 android:layout_marginEnd="10dp"
123 android:layout_gravity="center_vertical"
124 android:src="@drawable/cookies_enabled"
125 app:tint="@color/yellow_icon_selector"
126 tools:ignore="contentDescription" />
128 <androidx.appcompat.widget.SwitchCompat
129 android:id="@+id/cookies_switch"
130 android:layout_height="wrap_content"
131 android:layout_width="match_parent"
132 android:layout_marginStart="8dp"
133 android:layout_marginTop="14dp"
134 android:layout_marginBottom="14dp"
135 android:text="@string/cookies"
136 android:textColor="?android:textColorPrimary"
137 android:textSize="18sp" />
140 <!-- DOM Storage. -->
142 android:layout_height="wrap_content"
143 android:layout_width="match_parent"
144 android:orientation="horizontal" >
147 android:id="@+id/dom_storage_imageview"
148 android:layout_height="wrap_content"
149 android:layout_width="wrap_content"
150 android:layout_marginTop="1dp"
151 android:layout_marginEnd="10dp"
152 android:layout_gravity="center_vertical"
153 android:src="@drawable/dom_storage_enabled"
154 app:tint="@color/yellow_icon_selector"
155 tools:ignore="contentDescription" />
157 <androidx.appcompat.widget.SwitchCompat
158 android:id="@+id/dom_storage_switch"
159 android:layout_height="wrap_content"
160 android:layout_width="match_parent"
161 android:layout_marginStart="8dp"
162 android:layout_marginTop="14dp"
163 android:layout_marginBottom="14dp"
164 android:text="@string/dom_storage_preference"
165 android:textColor="?android:textColorPrimary"
166 android:textSize="18sp" />
171 android:layout_height="wrap_content"
172 android:layout_width="match_parent"
173 android:orientation="horizontal" >
176 android:id="@+id/form_data_imageview"
177 android:layout_height="wrap_content"
178 android:layout_width="wrap_content"
179 android:layout_marginTop="1dp"
180 android:layout_marginEnd="10dp"
181 android:layout_gravity="center_vertical"
182 android:src="@drawable/form_data_enabled"
183 app:tint="@color/yellow_icon_selector"
184 tools:ignore="contentDescription" />
186 <androidx.appcompat.widget.SwitchCompat
187 android:id="@+id/form_data_switch"
188 android:layout_height="wrap_content"
189 android:layout_width="match_parent"
190 android:layout_marginStart="8dp"
191 android:layout_marginTop="14dp"
192 android:layout_marginBottom="14dp"
193 android:text="@string/form_data"
194 android:textColor="?android:textColorPrimary"
195 android:textSize="18sp" />
200 android:layout_height="wrap_content"
201 android:layout_width="match_parent"
202 android:orientation="horizontal" >
205 android:id="@+id/easylist_imageview"
206 android:layout_height="wrap_content"
207 android:layout_width="wrap_content"
208 android:layout_marginTop="1dp"
209 android:layout_marginEnd="10dp"
210 android:layout_gravity="center_vertical"
211 android:src="@drawable/block_ads_enabled"
212 app:tint="@color/blue_icon_selector"
213 tools:ignore="contentDescription" />
215 <androidx.appcompat.widget.SwitchCompat
216 android:id="@+id/easylist_switch"
217 android:layout_height="wrap_content"
218 android:layout_width="match_parent"
219 android:layout_marginStart="8dp"
220 android:layout_marginTop="14dp"
221 android:layout_marginBottom="14dp"
222 android:text="@string/easylist"
223 android:textColor="?android:textColorPrimary"
224 android:textSize="18sp" />
227 <!-- EasyPrivacy. -->
229 android:layout_height="wrap_content"
230 android:layout_width="match_parent"
231 android:orientation="horizontal" >
234 android:id="@+id/easyprivacy_imageview"
235 android:layout_height="wrap_content"
236 android:layout_width="wrap_content"
237 android:layout_marginTop="1dp"
238 android:layout_marginEnd="10dp"
239 android:layout_gravity="center_vertical"
240 android:src="@drawable/block_tracking_enabled"
241 app:tint="@color/blue_icon_selector"
242 tools:ignore="contentDescription" />
244 <androidx.appcompat.widget.SwitchCompat
245 android:id="@+id/easyprivacy_switch"
246 android:layout_height="wrap_content"
247 android:layout_width="match_parent"
248 android:layout_marginStart="8dp"
249 android:layout_marginTop="14dp"
250 android:layout_marginBottom="14dp"
251 android:text="@string/easyprivacy"
252 android:textColor="?android:textColorPrimary"
253 android:textSize="18sp" />
256 <!-- Fanboy's Annoyance List. -->
258 android:layout_height="wrap_content"
259 android:layout_width="match_parent"
260 android:orientation="horizontal" >
263 android:id="@+id/fanboys_annoyance_list_imageview"
264 android:layout_height="wrap_content"
265 android:layout_width="wrap_content"
266 android:layout_marginTop="1dp"
267 android:layout_marginEnd="10dp"
268 android:layout_gravity="center_vertical"
269 android:src="@drawable/social_media_enabled"
270 app:tint="@color/blue_icon_selector"
271 tools:ignore="contentDescription" />
273 <androidx.appcompat.widget.SwitchCompat
274 android:id="@+id/fanboys_annoyance_list_switch"
275 android:layout_height="wrap_content"
276 android:layout_width="match_parent"
277 android:layout_marginStart="8dp"
278 android:layout_marginTop="14dp"
279 android:layout_marginBottom="14dp"
280 android:text="@string/fanboys_annoyance_list"
281 android:textColor="?android:textColorPrimary"
282 android:textSize="18sp" />
285 <!-- Fanboy's Social Blocking List. -->
287 android:layout_height="wrap_content"
288 android:layout_width="match_parent"
289 android:orientation="horizontal" >
292 android:id="@+id/fanboys_social_blocking_list_imageview"
293 android:layout_height="wrap_content"
294 android:layout_width="wrap_content"
295 android:layout_marginTop="1dp"
296 android:layout_marginEnd="10dp"
297 android:layout_gravity="center_vertical"
298 android:src="@drawable/social_media_enabled"
299 app:tint="@color/blue_icon_selector"
300 tools:ignore="contentDescription" />
302 <androidx.appcompat.widget.SwitchCompat
303 android:id="@+id/fanboys_social_blocking_list_switch"
304 android:layout_height="wrap_content"
305 android:layout_width="match_parent"
306 android:layout_marginStart="8dp"
307 android:layout_marginTop="14dp"
308 android:layout_marginBottom="14dp"
309 android:text="@string/fanboys_social_blocking_list"
310 android:textColor="?android:textColorPrimary"
311 android:textSize="18sp" />
316 android:layout_height="wrap_content"
317 android:layout_width="match_parent"
318 android:orientation="horizontal" >
321 android:id="@+id/ultralist_imageview"
322 android:layout_height="wrap_content"
323 android:layout_width="wrap_content"
324 android:layout_marginTop="1dp"
325 android:layout_marginEnd="10dp"
326 android:layout_gravity="center_vertical"
327 android:src="@drawable/block_ads_enabled"
328 app:tint="@color/blue_icon_selector"
329 tools:ignore="contentDescription" />
331 <androidx.appcompat.widget.SwitchCompat
332 android:id="@+id/ultralist_switch"
333 android:layout_height="wrap_content"
334 android:layout_width="match_parent"
335 android:layout_marginStart="8dp"
336 android:layout_marginTop="14dp"
337 android:layout_marginBottom="14dp"
338 android:text="@string/ultralist"
339 android:textColor="?android:textColorPrimary"
340 android:textSize="18sp" />
343 <!-- UltraPrivacy. -->
345 android:layout_height="wrap_content"
346 android:layout_width="match_parent"
347 android:orientation="horizontal" >
350 android:id="@+id/ultraprivacy_imageview"
351 android:layout_height="wrap_content"
352 android:layout_width="wrap_content"
353 android:layout_marginTop="1dp"
354 android:layout_marginEnd="10dp"
355 android:layout_gravity="center_vertical"
356 android:src="@drawable/block_tracking_enabled"
357 app:tint="@color/blue_icon_selector"
358 tools:ignore="contentDescription" />
360 <androidx.appcompat.widget.SwitchCompat
361 android:id="@+id/ultraprivacy_switch"
362 android:layout_height="wrap_content"
363 android:layout_width="match_parent"
364 android:layout_marginStart="8dp"
365 android:layout_marginTop="14dp"
366 android:layout_marginBottom="14dp"
367 android:text="@string/ultraprivacy"
368 android:textColor="?android:textColorPrimary"
369 android:textSize="18sp" />
372 <!-- Block All Third Party Requests. -->
374 android:layout_height="wrap_content"
375 android:layout_width="match_parent"
376 android:orientation="horizontal" >
379 android:id="@+id/block_all_third_party_requests_imageview"
380 android:layout_height="wrap_content"
381 android:layout_width="wrap_content"
382 android:layout_marginTop="1dp"
383 android:layout_marginEnd="10dp"
384 android:layout_gravity="center_vertical"
385 android:src="@drawable/block_all_third_party_requests_enabled"
386 app:tint="@color/blue_icon_selector"
387 tools:ignore="contentDescription" />
389 <androidx.appcompat.widget.SwitchCompat
390 android:id="@+id/block_all_third_party_requests_switch"
391 android:layout_height="wrap_content"
392 android:layout_width="match_parent"
393 android:layout_marginStart="8dp"
394 android:layout_marginTop="14dp"
395 android:layout_marginBottom="14dp"
396 android:text="@string/block_all_third_party_requests"
397 android:textColor="?android:textColorPrimary"
398 android:textSize="18sp" />
403 android:id="@+id/user_agent_linear_layout"
404 android:layout_height="wrap_content"
405 android:layout_width="match_parent"
406 android:orientation="vertical"
407 android:layout_marginTop="14dp"
408 android:layout_marginBottom="14dp" >
411 android:layout_height="wrap_content"
412 android:layout_width="match_parent"
413 android:orientation="horizontal" >
416 android:layout_height="wrap_content"
417 android:layout_width="wrap_content"
418 android:layout_marginTop="1dp"
419 android:layout_marginEnd="10dp"
420 android:layout_gravity="center_vertical"
421 android:src="@drawable/user_agent"
422 app:tint="@color/blue_icon"
423 android:contentDescription="@string/user_agent" />
426 android:id="@+id/user_agent_spinner"
427 android:layout_height="wrap_content"
428 android:layout_width="match_parent" />
432 android:id="@+id/user_agent_textview"
433 android:layout_height="wrap_content"
434 android:layout_width="match_parent"
435 android:layout_marginStart="45dp"
436 android:layout_marginEnd="36dp"
437 android:textSize="13sp" />
440 android:id="@+id/custom_user_agent_edittext"
441 android:layout_height="wrap_content"
442 android:layout_width="match_parent"
443 android:layout_marginStart="40dp"
444 android:layout_marginEnd="60dp"
445 android:inputType="textUri"
446 android:hint="@string/custom_user_agent"
447 android:importantForAutofill="no" />
452 android:layout_height="wrap_content"
453 android:layout_width="match_parent"
454 android:orientation="vertical"
455 android:layout_marginTop="14dp"
456 android:layout_marginBottom="14dp" >
459 android:layout_height="wrap_content"
460 android:layout_width="match_parent"
461 android:orientation="horizontal" >
464 android:layout_height="wrap_content"
465 android:layout_width="wrap_content"
466 android:layout_marginTop="1dp"
467 android:layout_marginEnd="10dp"
468 android:layout_gravity="center_vertical"
469 android:src="@drawable/font_size"
470 app:tint="@color/blue_icon"
471 android:contentDescription="@string/font_size" />
474 android:id="@+id/font_size_spinner"
475 android:layout_height="wrap_content"
476 android:layout_width="match_parent" />
480 android:id="@+id/default_font_size_textview"
481 android:layout_height="wrap_content"
482 android:layout_width="match_parent"
483 android:layout_marginStart="45dp"
484 android:layout_marginEnd="36dp"
485 android:textSize="13sp" />
488 android:id="@+id/custom_font_size_edittext"
489 android:layout_height="wrap_content"
490 android:layout_width="match_parent"
491 android:layout_marginStart="40dp"
492 android:layout_marginEnd="60dp"
493 android:inputType="number"
494 android:hint="@string/font_size"
495 android:importantForAutofill="no" />
498 <!-- Swipe to Refresh. -->
500 android:layout_height="wrap_content"
501 android:layout_width="match_parent"
502 android:orientation="vertical"
503 android:layout_marginTop="14dp"
504 android:layout_marginBottom="14dp" >
507 android:layout_height="wrap_content"
508 android:layout_width="match_parent"
509 android:orientation="horizontal" >
512 android:id="@+id/swipe_to_refresh_imageview"
513 android:layout_height="wrap_content"
514 android:layout_width="wrap_content"
515 android:layout_marginTop="1dp"
516 android:layout_marginEnd="10dp"
517 android:layout_gravity="center_vertical"
518 android:src="@drawable/refresh_enabled"
519 app:tint="@color/blue_icon_selector"
520 android:contentDescription="@string/swipe_to_refresh" />
523 android:id="@+id/swipe_to_refresh_spinner"
524 android:layout_height="wrap_content"
525 android:layout_width="match_parent" />
529 android:id="@+id/swipe_to_refresh_textview"
530 android:layout_height="wrap_content"
531 android:layout_width="match_parent"
532 android:layout_marginStart="45dp"
533 android:layout_marginEnd="36dp"
534 android:textSize="13sp" />
537 <!-- WebView Theme. -->
539 android:id="@+id/webview_theme_linearlayout"
540 android:layout_height="wrap_content"
541 android:layout_width="match_parent"
542 android:orientation="vertical"
543 android:layout_marginTop="14dp"
544 android:layout_marginBottom="14dp" >
547 android:layout_height="wrap_content"
548 android:layout_width="match_parent"
549 android:orientation="horizontal" >
552 android:id="@+id/webview_theme_imageview"
553 android:layout_height="wrap_content"
554 android:layout_width="wrap_content"
555 android:layout_marginTop="1dp"
556 android:layout_marginEnd="10dp"
557 android:layout_gravity="center_vertical"
558 android:src="@drawable/webview_light_theme"
559 app:tint="@color/blue_icon_selector"
560 android:contentDescription="@string/webview_theme" />
563 android:id="@+id/webview_theme_spinner"
564 android:layout_height="wrap_content"
565 android:layout_width="match_parent" />
569 android:id="@+id/webview_theme_textview"
570 android:layout_height="wrap_content"
571 android:layout_width="match_parent"
572 android:layout_marginStart="45dp"
573 android:layout_marginEnd="36dp"
574 android:textSize="13sp" />
577 <!-- Wide Viewport. -->
579 android:layout_height="wrap_content"
580 android:layout_width="match_parent"
581 android:orientation="vertical"
582 android:layout_marginTop="14dp"
583 android:layout_marginBottom="14dp" >
586 android:layout_height="wrap_content"
587 android:layout_width="match_parent"
588 android:orientation="horizontal" >
591 android:id="@+id/wide_viewport_imageview"
592 android:layout_height="wrap_content"
593 android:layout_width="wrap_content"
594 android:layout_marginTop="1dp"
595 android:layout_marginEnd="10dp"
596 android:layout_gravity="center_vertical"
597 android:src="@drawable/wide_viewport_enabled"
598 app:tint="@color/blue_icon_selector"
599 android:contentDescription="@string/wide_viewport" />
602 android:id="@+id/wide_viewport_spinner"
603 android:layout_height="wrap_content"
604 android:layout_width="match_parent" />
608 android:id="@+id/wide_viewport_textview"
609 android:layout_height="wrap_content"
610 android:layout_width="match_parent"
611 android:layout_marginStart="45dp"
612 android:layout_marginEnd="36dp"
613 android:textSize="13sp" />
616 <!-- Display Images. -->
618 android:layout_height="wrap_content"
619 android:layout_width="match_parent"
620 android:orientation="vertical"
621 android:layout_marginTop="14dp"
622 android:layout_marginBottom="14dp" >
625 android:layout_height="wrap_content"
626 android:layout_width="match_parent"
627 android:orientation="horizontal" >
630 android:id="@+id/display_webpage_images_imageview"
631 android:layout_height="wrap_content"
632 android:layout_width="wrap_content"
633 android:layout_marginTop="1dp"
634 android:layout_marginEnd="10dp"
635 android:layout_gravity="center_vertical"
636 android:src="@drawable/images_enabled"
637 app:tint="@color/blue_icon_selector"
638 android:contentDescription="@string/display_webpage_images" />
641 android:id="@+id/display_webpage_images_spinner"
642 android:layout_height="wrap_content"
643 android:layout_width="match_parent" />
647 android:id="@+id/display_webpage_images_textview"
648 android:layout_height="wrap_content"
649 android:layout_width="match_parent"
650 android:layout_marginStart="45dp"
651 android:layout_marginEnd="36dp"
652 android:textSize="13sp" />
655 <!-- Pinned SSL Certificate -->
657 android:layout_height="wrap_content"
658 android:layout_width="match_parent"
659 android:orientation="vertical"
660 android:layout_marginTop="18dp"
661 android:layout_marginBottom="18dp" >
665 android:layout_height="wrap_content"
666 android:layout_width="match_parent"
667 android:orientation="horizontal" >
670 android:id="@+id/pinned_ssl_certificate_imageview"
671 android:layout_height="wrap_content"
672 android:layout_width="wrap_content"
673 android:layout_marginTop="1dp"
674 android:layout_marginEnd="10dp"
675 android:layout_gravity="center_vertical"
676 android:src="@drawable/ssl_certificate"
677 app:tint="@color/blue_icon_selector"
678 tools:ignore="contentDescription" />
680 <androidx.appcompat.widget.SwitchCompat
681 android:id="@+id/pinned_ssl_certificate_switch"
682 android:layout_height="wrap_content"
683 android:layout_width="match_parent"
684 android:layout_marginStart="8dp"
685 android:text="@string/pinned_ssl_certificate"
686 android:textColor="?android:textColorPrimary"
687 android:textSize="18sp"
688 tools:ignore="TooManyViews" />
691 <!-- Saved Certificate -->
692 <androidx.cardview.widget.CardView
693 android:id="@+id/saved_ssl_certificate_cardview"
694 android:layout_height="wrap_content"
695 android:layout_width="match_parent"
696 android:layout_marginTop="10dp"
697 android:layout_marginStart="10dp"
698 android:layout_marginEnd="10dp" >
701 android:id="@+id/saved_ssl_certificate_linearlayout"
702 android:layout_height="wrap_content"
703 android:layout_width="match_parent"
704 android:orientation="vertical"
705 android:padding="10dp" >
708 android:id="@+id/saved_ssl_certificate_radiobutton"
709 android:layout_height="wrap_content"
710 android:layout_width="match_parent"
711 android:text="@string/saved_ssl_certificate"
712 android:textSize="17sp"
713 android:textAllCaps="true"
714 android:textStyle="bold"
715 android:textColor="?android:textColorPrimary" />
718 android:layout_height="wrap_content"
719 android:layout_width="match_parent"
720 android:layout_marginStart="32dp"
721 android:orientation="vertical" >
723 <!-- Saved Certificate Issued To. -->
725 android:layout_height="wrap_content"
726 android:layout_width="match_parent"
727 android:text="@string/issued_to"
728 android:textAllCaps="true"
729 android:textStyle="bold"
730 android:textColor="@color/blue_title_text" />
733 android:id="@+id/saved_ssl_certificate_issued_to_cname"
734 android:layout_height="wrap_content"
735 android:layout_width="match_parent" />
738 android:id="@+id/saved_ssl_certificate_issued_to_oname"
739 android:layout_height="wrap_content"
740 android:layout_width="match_parent" />
743 android:id="@+id/saved_ssl_certificate_issued_to_uname"
744 android:layout_height="wrap_content"
745 android:layout_width="match_parent"/>
747 <!-- Saved Certificate Issued By. -->
749 android:layout_height="wrap_content"
750 android:layout_width="match_parent"
751 android:layout_marginTop="15dp"
752 android:text="@string/issued_by"
753 android:textAllCaps="true"
754 android:textStyle="bold"
755 android:textColor="@color/blue_title_text"/>
758 android:id="@+id/saved_ssl_certificate_issued_by_cname"
759 android:layout_height="wrap_content"
760 android:layout_width="match_parent" />
763 android:id="@+id/saved_ssl_certificate_issued_by_oname"
764 android:layout_height="wrap_content"
765 android:layout_width="match_parent" />
768 android:id="@+id/saved_ssl_certificate_issued_by_uname"
769 android:layout_height="wrap_content"
770 android:layout_width="match_parent" />
772 <!-- Saved Certificate Valid Dates. -->
774 android:layout_height="wrap_content"
775 android:layout_width="match_parent"
776 android:layout_marginTop="15dp"
777 android:text="@string/valid_dates"
778 android:textAllCaps="true"
779 android:textStyle="bold"
780 android:textColor="@color/blue_title_text"/>
783 android:id="@+id/saved_ssl_certificate_start_date"
784 android:layout_height="wrap_content"
785 android:layout_width="match_parent" />
788 android:id="@+id/saved_ssl_certificate_end_date"
789 android:layout_height="wrap_content"
790 android:layout_width="match_parent" />
793 </androidx.cardview.widget.CardView>
795 <!-- Current Website Certificate -->
796 <androidx.cardview.widget.CardView
797 android:id="@+id/current_website_certificate_cardview"
798 android:layout_height="wrap_content"
799 android:layout_width="match_parent"
800 android:layout_margin="10dp" >
803 android:id="@+id/current_website_certificate_linearlayout"
804 android:layout_height="wrap_content"
805 android:layout_width="match_parent"
806 android:orientation="vertical"
807 android:padding="10dp" >
810 android:id="@+id/current_website_certificate_radiobutton"
811 android:layout_height="wrap_content"
812 android:layout_width="match_parent"
813 android:text="@string/current_website_ssl_certificate"
814 android:textSize="17sp"
815 android:textAllCaps="true"
816 android:textStyle="bold"
817 android:textColor="?android:textColorPrimary" />
820 android:layout_height="wrap_content"
821 android:layout_width="match_parent"
822 android:layout_marginStart="32dp"
823 android:orientation="vertical" >
825 <!-- Current Website Certificate Issued To. -->
827 android:layout_height="wrap_content"
828 android:layout_width="match_parent"
829 android:text="@string/issued_to"
830 android:textAllCaps="true"
831 android:textStyle="bold"
832 android:textColor="@color/blue_title_text" />
835 android:id="@+id/current_website_certificate_issued_to_cname"
836 android:layout_height="wrap_content"
837 android:layout_width="match_parent" />
840 android:id="@+id/current_website_certificate_issued_to_oname"
841 android:layout_height="wrap_content"
842 android:layout_width="match_parent" />
845 android:id="@+id/current_website_certificate_issued_to_uname"
846 android:layout_height="wrap_content"
847 android:layout_width="match_parent" />
849 <!-- Current Website Certificate Issued By. -->
851 android:layout_height="wrap_content"
852 android:layout_width="match_parent"
853 android:layout_marginTop="15dp"
854 android:text="@string/issued_by"
855 android:textAllCaps="true"
856 android:textStyle="bold"
857 android:textColor="@color/blue_title_text" />
860 android:id="@+id/current_website_certificate_issued_by_cname"
861 android:layout_height="wrap_content"
862 android:layout_width="match_parent" />
865 android:id="@+id/current_website_certificate_issued_by_oname"
866 android:layout_height="wrap_content"
867 android:layout_width="match_parent" />
870 android:id="@+id/current_website_certificate_issued_by_uname"
871 android:layout_height="wrap_content"
872 android:layout_width="match_parent" />
874 <!-- Current Website Certificate Valid Dates. -->
876 android:layout_height="wrap_content"
877 android:layout_width="match_parent"
878 android:layout_marginTop="15dp"
879 android:text="@string/valid_dates"
880 android:textAllCaps="true"
881 android:textStyle="bold"
882 android:textColor="@color/blue_title_text" />
885 android:id="@+id/current_website_certificate_start_date"
886 android:layout_height="wrap_content"
887 android:layout_width="match_parent" />
890 android:id="@+id/current_website_certificate_end_date"
891 android:layout_height="wrap_content"
892 android:layout_width="match_parent" />
895 </androidx.cardview.widget.CardView>
897 <!-- Load An Encrypted Website Instructions. -->
899 android:id="@+id/no_current_website_certificate"
900 android:layout_height="wrap_content"
901 android:layout_width="match_parent"
902 android:layout_marginTop="10dp"
903 android:layout_marginBottom="10dp"
904 android:layout_marginStart="40dp"
905 android:layout_marginEnd="40dp"
906 android:gravity="center_horizontal"
907 android:text="@string/load_an_encrypted_website" />
910 <!-- Pinned IP Addresses -->
912 android:layout_height="wrap_content"
913 android:layout_width="match_parent"
914 android:orientation="vertical"
915 android:layout_marginTop="18dp"
916 android:layout_marginBottom="18dp" >
920 android:layout_height="wrap_content"
921 android:layout_width="match_parent"
922 android:orientation="horizontal" >
925 android:id="@+id/pinned_ip_addresses_imageview"
926 android:layout_height="wrap_content"
927 android:layout_width="wrap_content"
928 android:layout_marginTop="1dp"
929 android:layout_marginEnd="10dp"
930 android:layout_gravity="center_vertical"
931 android:src="@drawable/ssl_certificate"
932 app:tint="@color/blue_icon_selector"
933 tools:ignore="contentDescription" />
935 <androidx.appcompat.widget.SwitchCompat
936 android:id="@+id/pinned_ip_addresses_switch"
937 android:layout_height="wrap_content"
938 android:layout_width="match_parent"
939 android:layout_marginStart="8dp"
940 android:text="@string/pinned_ip_addresses"
941 android:textColor="?android:textColorPrimary"
942 android:textSize="18sp" />
945 <!-- Saved IP Addresses -->
946 <androidx.cardview.widget.CardView
947 android:id="@+id/saved_ip_addresses_cardview"
948 android:layout_height="wrap_content"
949 android:layout_width="match_parent"
950 android:layout_marginTop="10dp"
951 android:layout_marginStart="10dp"
952 android:layout_marginEnd="10dp" >
955 android:id="@+id/saved_ip_addresses_linearlayout"
956 android:layout_height="wrap_content"
957 android:layout_width="match_parent"
958 android:orientation="vertical"
959 android:padding="10dp" >
962 android:id="@+id/saved_ip_addresses_radiobutton"
963 android:layout_height="wrap_content"
964 android:layout_width="match_parent"
965 android:text="@string/saved_ip_addresses"
966 android:textSize="17sp"
967 android:textAllCaps="true"
968 android:textStyle="bold"
969 android:textColor="?android:textColorPrimary" />
972 android:id="@+id/saved_ip_addresses_textview"
973 android:layout_height="wrap_content"
974 android:layout_width="match_parent"
975 android:layout_marginStart="32dp"
976 android:textColor="@color/blue_text" />
978 </androidx.cardview.widget.CardView>
980 <androidx.cardview.widget.CardView
981 android:id="@+id/current_ip_addresses_cardview"
982 android:layout_height="wrap_content"
983 android:layout_width="match_parent"
984 android:layout_margin="10dp">
987 android:id="@+id/current_ip_addresses_linearlayout"
988 android:layout_height="wrap_content"
989 android:layout_width="match_parent"
990 android:orientation="vertical"
991 android:padding="10dp" >
994 android:id="@+id/current_ip_addresses_radiobutton"
995 android:layout_height="wrap_content"
996 android:layout_width="match_parent"
997 android:text="@string/current_ip_addresses"
998 android:textSize="17sp"
999 android:textAllCaps="true"
1000 android:textStyle="bold"
1001 android:textColor="?android:textColorPrimary" />
1004 android:id="@+id/current_ip_addresses_textview"
1005 android:layout_height="wrap_content"
1006 android:layout_width="match_parent"
1007 android:layout_marginStart="32dp"
1008 android:textColor="@color/blue_text" />
1010 </androidx.cardview.widget.CardView>