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:app="http://schemas.android.com/apk/res-auto"
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" >
32 android:layout_height="wrap_content"
33 android:layout_width="match_parent"
34 android:orientation="vertical"
35 android:divider="?android:attr/dividerVertical" >
39 android:layout_height="wrap_content"
40 android:layout_width="match_parent"
41 android:orientation="vertical"
42 android:layout_marginTop="12dp"
43 android:layout_marginStart="12dp"
44 android:layout_marginEnd="12dp" >
47 android:layout_height="wrap_content"
48 android:layout_width="match_parent"
49 android:orientation="horizontal" >
52 android:layout_height="wrap_content"
53 android:layout_width="wrap_content"
54 android:layout_marginEnd="10dp"
55 android:layout_marginBottom="12dp"
56 android:layout_gravity="bottom"
57 android:src="@drawable/domains"
58 app:tint="@color/blue_icon"
59 tools:ignore="contentDescription" />
61 <!-- `TextInputLayout` makes the `android:hint` float above the `EditText`. -->
62 <com.google.android.material.textfield.TextInputLayout
63 android:layout_height="wrap_content"
64 android:layout_width="match_parent"
65 android:layout_marginStart="6dp" >
67 <!-- `android:inputType="textUri"` disables spell check in the `EditText`. -->
68 <com.google.android.material.textfield.TextInputEditText
69 android:id="@+id/domain_settings_name_edittext"
70 android:layout_width="match_parent"
71 android:layout_height="wrap_content"
72 android:hint="@string/domain_name"
73 android:inputType="textUri" />
74 </com.google.android.material.textfield.TextInputLayout>
78 android:layout_height="wrap_content"
79 android:layout_width="match_parent"
80 android:text="@string/domain_name_instructions"
81 android:textSize="12sp"
82 android:layout_marginStart="43dp"
83 android:layout_marginBottom="14dp" />
88 android:id="@+id/javascript_linearlayout"
89 android:layout_height="wrap_content"
90 android:layout_width="match_parent"
91 android:orientation="vertical"
92 android:padding="12dp" >
95 android:layout_height="wrap_content"
96 android:layout_width="match_parent"
97 android:text="@string/javascript" />
100 android:layout_height="wrap_content"
101 android:layout_width="match_parent"
102 android:text="@string/javascript" >
105 android:id="@+id/javascript_imageview"
106 android:layout_height="wrap_content"
107 android:layout_width="wrap_content"
108 android:layout_marginTop="1dp"
109 android:layout_marginEnd="10dp"
110 android:layout_gravity="center_vertical"
111 android:contentDescription="@string/javascript" />
114 android:id="@+id/javascript_spinner"
115 android:layout_height="wrap_content"
116 android:layout_width="match_parent" />
120 android:id="@+id/javascript_textview"
121 android:layout_height="wrap_content"
122 android:layout_width="match_parent"
123 android:layout_marginStart="45dp"
124 android:layout_marginEnd="36dp"
125 android:textSize="13sp" />
130 android:id="@+id/cookies_linearlayout"
131 android:layout_height="wrap_content"
132 android:layout_width="match_parent"
133 android:orientation="vertical"
134 android:padding="12dp" >
137 android:layout_height="wrap_content"
138 android:layout_width="match_parent"
139 android:text="@string/cookies" />
142 android:layout_height="wrap_content"
143 android:layout_width="match_parent"
144 android:text="@string/cookies" >
147 android:id="@+id/cookies_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/cookies_enabled"
154 app:tint="@color/yellow_icon_selector"
155 android:contentDescription="@string/cookies" />
158 android:id="@+id/cookies_spinner"
159 android:layout_height="wrap_content"
160 android:layout_width="match_parent" />
164 android:id="@+id/cookies_textview"
165 android:layout_height="wrap_content"
166 android:layout_width="match_parent"
167 android:layout_marginStart="45dp"
168 android:layout_marginEnd="36dp"
169 android:textSize="13sp" />
172 <!-- DOM Storage. -->
174 android:id="@+id/dom_storage_linearlayout"
175 android:layout_height="wrap_content"
176 android:layout_width="match_parent"
177 android:orientation="vertical"
178 android:padding="12dp" >
181 android:layout_height="wrap_content"
182 android:layout_width="match_parent"
183 android:text="@string/dom_storage" />
186 android:layout_height="wrap_content"
187 android:layout_width="match_parent"
188 android:text="@string/dom_storage" >
191 android:id="@+id/dom_storage_imageview"
192 android:layout_height="wrap_content"
193 android:layout_width="wrap_content"
194 android:layout_marginTop="1dp"
195 android:layout_marginEnd="10dp"
196 android:layout_gravity="center_vertical"
197 android:src="@drawable/dom_storage_enabled"
198 app:tint="@color/yellow_icon_selector"
199 android:contentDescription="@string/dom_storage" />
202 android:id="@+id/dom_storage_spinner"
203 android:layout_height="wrap_content"
204 android:layout_width="match_parent" />
208 android:id="@+id/dom_storage_textview"
209 android:layout_height="wrap_content"
210 android:layout_width="match_parent"
211 android:layout_marginStart="45dp"
212 android:layout_marginEnd="36dp"
213 android:textSize="13sp" />
216 <!-- Form Data. This may be removed one the minimum API >= 26. -->
218 android:id="@+id/form_data_linearlayout"
219 android:layout_height="wrap_content"
220 android:layout_width="match_parent"
221 android:orientation="vertical"
222 android:padding="12dp" >
225 android:layout_height="wrap_content"
226 android:layout_width="match_parent"
227 android:text="@string/form_data" />
230 android:layout_height="wrap_content"
231 android:layout_width="match_parent"
232 android:orientation="horizontal" >
235 android:id="@+id/form_data_imageview"
236 android:layout_height="wrap_content"
237 android:layout_width="wrap_content"
238 android:layout_marginTop="1dp"
239 android:layout_marginEnd="10dp"
240 android:layout_gravity="center_vertical"
241 android:src="@drawable/form_data_enabled"
242 app:tint="@color/yellow_icon_selector"
243 android:contentDescription="@string/form_data" />
246 android:id="@+id/form_data_spinner"
247 android:layout_height="wrap_content"
248 android:layout_width="match_parent" />
252 android:id="@+id/form_data_textview"
253 android:layout_height="wrap_content"
254 android:layout_width="match_parent"
255 android:layout_marginStart="45dp"
256 android:layout_marginEnd="36dp"
257 android:textSize="13sp" />
262 android:id="@+id/easylist_linearlayout"
263 android:layout_height="wrap_content"
264 android:layout_width="match_parent"
265 android:orientation="vertical"
266 android:padding="12dp" >
269 android:layout_height="wrap_content"
270 android:layout_width="match_parent"
271 android:text="@string/easylist" />
274 android:layout_height="wrap_content"
275 android:layout_width="match_parent"
276 android:orientation="horizontal" >
279 android:id="@+id/easylist_imageview"
280 android:layout_height="wrap_content"
281 android:layout_width="wrap_content"
282 android:layout_marginTop="1dp"
283 android:layout_marginEnd="10dp"
284 android:layout_gravity="center_vertical"
285 android:src="@drawable/block_ads_enabled"
286 app:tint="@color/blue_icon_selector"
287 android:contentDescription="@string/easylist" />
290 android:id="@+id/easylist_spinner"
291 android:layout_height="wrap_content"
292 android:layout_width="match_parent" />
296 android:id="@+id/easylist_textview"
297 android:layout_height="wrap_content"
298 android:layout_width="match_parent"
299 android:layout_marginStart="45dp"
300 android:layout_marginEnd="36dp"
301 android:textSize="13sp" />
304 <!-- EasyPrivacy. -->
306 android:id="@+id/easyprivacy_linearlayout"
307 android:layout_height="wrap_content"
308 android:layout_width="match_parent"
309 android:orientation="vertical"
310 android:padding="12dp" >
313 android:layout_height="wrap_content"
314 android:layout_width="match_parent"
315 android:text="@string/easyprivacy" />
318 android:layout_height="wrap_content"
319 android:layout_width="match_parent"
320 android:orientation="horizontal" >
323 android:id="@+id/easyprivacy_imageview"
324 android:layout_height="wrap_content"
325 android:layout_width="wrap_content"
326 android:layout_marginTop="1dp"
327 android:layout_marginEnd="10dp"
328 android:layout_gravity="center_vertical"
329 android:src="@drawable/block_tracking_enabled"
330 app:tint="@color/blue_icon_selector"
331 android:contentDescription="@string/easyprivacy" />
334 android:id="@+id/easyprivacy_spinner"
335 android:layout_height="wrap_content"
336 android:layout_width="match_parent" />
340 android:id="@+id/easyprivacy_textview"
341 android:layout_height="wrap_content"
342 android:layout_width="match_parent"
343 android:layout_marginStart="45dp"
344 android:layout_marginEnd="36dp"
345 android:textSize="13sp" />
348 <!-- Fanboy's Annoyance List. -->
350 android:id="@+id/fanboys_annoyance_list_linearlayout"
351 android:layout_height="wrap_content"
352 android:layout_width="match_parent"
353 android:orientation="vertical"
354 android:padding="12dp" >
357 android:layout_height="wrap_content"
358 android:layout_width="match_parent"
359 android:text="@string/fanboys_annoyance_list" />
362 android:layout_height="wrap_content"
363 android:layout_width="match_parent"
364 android:orientation="horizontal" >
367 android:id="@+id/fanboys_annoyance_list_imageview"
368 android:layout_height="wrap_content"
369 android:layout_width="wrap_content"
370 android:layout_marginTop="1dp"
371 android:layout_marginEnd="10dp"
372 android:layout_gravity="center_vertical"
373 android:src="@drawable/social_media_enabled"
374 app:tint="@color/blue_icon_selector"
375 android:contentDescription="@string/fanboys_annoyance_list" />
378 android:id="@+id/fanboys_annoyance_list_spinner"
379 android:layout_height="wrap_content"
380 android:layout_width="match_parent" />
384 android:id="@+id/fanboys_annoyance_list_textview"
385 android:layout_height="wrap_content"
386 android:layout_width="match_parent"
387 android:layout_marginStart="45dp"
388 android:layout_marginEnd="36dp"
389 android:textSize="13sp" />
392 <!-- Fanboy's Social Blocking List. -->
394 android:id="@+id/fanboys_social_blocking_list_linearlayout"
395 android:layout_height="wrap_content"
396 android:layout_width="match_parent"
397 android:orientation="vertical"
398 android:padding="12dp" >
401 android:layout_height="wrap_content"
402 android:layout_width="match_parent"
403 android:text="@string/fanboys_social_blocking_list" />
406 android:layout_height="wrap_content"
407 android:layout_width="match_parent"
408 android:orientation="horizontal" >
411 android:id="@+id/fanboys_social_blocking_list_imageview"
412 android:layout_height="wrap_content"
413 android:layout_width="wrap_content"
414 android:layout_marginTop="1dp"
415 android:layout_marginEnd="10dp"
416 android:layout_gravity="center_vertical"
417 android:src="@drawable/social_media_enabled"
418 app:tint="@color/blue_icon_selector"
419 android:contentDescription="@string/fanboys_social_blocking_list" />
422 android:id="@+id/fanboys_social_blocking_list_spinner"
423 android:layout_height="wrap_content"
424 android:layout_width="match_parent" />
428 android:id="@+id/fanboys_social_blocking_list_textview"
429 android:layout_height="wrap_content"
430 android:layout_width="match_parent"
431 android:layout_marginStart="45dp"
432 android:layout_marginEnd="36dp"
433 android:textSize="13sp" />
438 android:id="@+id/ultralist_linearlayout"
439 android:layout_height="wrap_content"
440 android:layout_width="match_parent"
441 android:orientation="vertical"
442 android:padding="12dp" >
445 android:layout_height="wrap_content"
446 android:layout_width="match_parent"
447 android:text="@string/ultralist" />
450 android:layout_height="wrap_content"
451 android:layout_width="match_parent"
452 android:orientation="horizontal" >
455 android:id="@+id/ultralist_imageview"
456 android:layout_height="wrap_content"
457 android:layout_width="wrap_content"
458 android:layout_marginTop="1dp"
459 android:layout_marginEnd="10dp"
460 android:layout_gravity="center_vertical"
461 android:src="@drawable/block_ads_enabled"
462 app:tint="@color/blue_icon_selector"
463 android:contentDescription="@string/ultralist" />
466 android:id="@+id/ultralist_spinner"
467 android:layout_height="wrap_content"
468 android:layout_width="match_parent" />
472 android:id="@+id/ultralist_textview"
473 android:layout_height="wrap_content"
474 android:layout_width="match_parent"
475 android:layout_marginStart="45dp"
476 android:layout_marginEnd="36dp"
477 android:textSize="13sp" />
480 <!-- UltraPrivacy. -->
482 android:id="@+id/ultraprivacy_linearlayout"
483 android:layout_height="wrap_content"
484 android:layout_width="match_parent"
485 android:orientation="vertical"
486 android:padding="12dp" >
489 android:layout_height="wrap_content"
490 android:layout_width="match_parent"
491 android:text="@string/ultraprivacy" />
494 android:layout_height="wrap_content"
495 android:layout_width="match_parent"
496 android:orientation="horizontal" >
499 android:id="@+id/ultraprivacy_imageview"
500 android:layout_height="wrap_content"
501 android:layout_width="wrap_content"
502 android:layout_marginTop="1dp"
503 android:layout_marginEnd="10dp"
504 android:layout_gravity="center_vertical"
505 android:src="@drawable/block_tracking_enabled"
506 app:tint="@color/blue_icon_selector"
507 android:contentDescription="@string/ultraprivacy" />
510 android:id="@+id/ultraprivacy_spinner"
511 android:layout_height="wrap_content"
512 android:layout_width="match_parent" />
516 android:id="@+id/ultraprivacy_textview"
517 android:layout_height="wrap_content"
518 android:layout_width="match_parent"
519 android:layout_marginStart="45dp"
520 android:layout_marginEnd="36dp"
521 android:textSize="13sp" />
524 <!-- Block All Third Party Requests. -->
526 android:id="@+id/block_all_third_party_requests_linearlayout"
527 android:layout_height="wrap_content"
528 android:layout_width="match_parent"
529 android:orientation="vertical"
530 android:padding="12dp" >
533 android:layout_height="wrap_content"
534 android:layout_width="match_parent"
535 android:text="@string/block_all_third_party_requests" />
538 android:layout_height="wrap_content"
539 android:layout_width="match_parent"
540 android:orientation="horizontal" >
543 android:id="@+id/block_all_third_party_requests_imageview"
544 android:layout_height="wrap_content"
545 android:layout_width="wrap_content"
546 android:layout_marginTop="1dp"
547 android:layout_marginEnd="10dp"
548 android:layout_gravity="center_vertical"
549 android:src="@drawable/block_all_third_party_requests_enabled"
550 app:tint="@color/blue_icon_selector"
551 android:contentDescription="@string/block_all_third_party_requests" />
554 android:id="@+id/block_all_third_party_requests_spinner"
555 android:layout_height="wrap_content"
556 android:layout_width="match_parent" />
560 android:id="@+id/block_all_third_party_requests_textview"
561 android:layout_height="wrap_content"
562 android:layout_width="match_parent"
563 android:layout_marginStart="45dp"
564 android:layout_marginEnd="36dp"
565 android:textSize="13sp" />
570 android:id="@+id/user_agent_linearlayout"
571 android:layout_height="wrap_content"
572 android:layout_width="match_parent"
573 android:orientation="vertical"
574 android:padding="12dp" >
577 android:layout_height="wrap_content"
578 android:layout_width="match_parent"
579 android:text="@string/user_agent" />
582 android:layout_height="wrap_content"
583 android:layout_width="match_parent"
584 android:orientation="horizontal" >
587 android:layout_height="wrap_content"
588 android:layout_width="wrap_content"
589 android:layout_marginTop="1dp"
590 android:layout_marginEnd="10dp"
591 android:layout_gravity="center_vertical"
592 android:src="@drawable/user_agent"
593 app:tint="@color/blue_icon"
594 android:contentDescription="@string/user_agent" />
597 android:id="@+id/user_agent_spinner"
598 android:layout_height="wrap_content"
599 android:layout_width="match_parent" />
603 android:id="@+id/user_agent_textview"
604 android:layout_height="wrap_content"
605 android:layout_width="match_parent"
606 android:layout_marginStart="45dp"
607 android:layout_marginEnd="36dp"
608 android:textSize="13sp" />
611 android:id="@+id/custom_user_agent_edittext"
612 android:layout_height="wrap_content"
613 android:layout_width="match_parent"
614 android:layout_marginStart="40dp"
615 android:layout_marginEnd="60dp"
616 android:inputType="textUri"
617 android:hint="@string/custom_user_agent"
618 android:importantForAutofill="no" />
623 android:id="@+id/font_size_linearlayout"
624 android:layout_height="wrap_content"
625 android:layout_width="match_parent"
626 android:orientation="vertical"
627 android:padding="12dp" >
630 android:layout_height="wrap_content"
631 android:layout_width="match_parent"
632 android:text="@string/font_size" />
635 android:layout_height="wrap_content"
636 android:layout_width="match_parent"
637 android:orientation="horizontal" >
640 android:layout_height="wrap_content"
641 android:layout_width="wrap_content"
642 android:layout_marginTop="1dp"
643 android:layout_marginEnd="10dp"
644 android:layout_gravity="center_vertical"
645 android:src="@drawable/font_size"
646 app:tint="@color/blue_icon"
647 android:contentDescription="@string/font_size" />
650 android:id="@+id/font_size_spinner"
651 android:layout_height="wrap_content"
652 android:layout_width="match_parent" />
656 android:id="@+id/default_font_size_textview"
657 android:layout_height="wrap_content"
658 android:layout_width="match_parent"
659 android:layout_marginStart="45dp"
660 android:layout_marginEnd="36dp"
661 android:textSize="13sp" />
664 android:id="@+id/custom_font_size_edittext"
665 android:layout_height="wrap_content"
666 android:layout_width="match_parent"
667 android:layout_marginStart="40dp"
668 android:layout_marginEnd="60dp"
669 android:inputType="number"
670 android:hint="@string/font_size"
671 android:importantForAutofill="no" />
674 <!-- Swipe to Refresh. -->
676 android:id="@+id/swipe_to_refresh_linearlayout"
677 android:layout_height="wrap_content"
678 android:layout_width="match_parent"
679 android:orientation="vertical"
680 android:padding="12dp" >
683 android:layout_height="wrap_content"
684 android:layout_width="match_parent"
685 android:text="@string/swipe_to_refresh"
686 tools:ignore="TooManyViews" />
689 android:layout_height="wrap_content"
690 android:layout_width="match_parent"
691 android:orientation="horizontal" >
694 android:id="@+id/swipe_to_refresh_imageview"
695 android:layout_height="wrap_content"
696 android:layout_width="wrap_content"
697 android:layout_marginTop="1dp"
698 android:layout_marginEnd="10dp"
699 android:layout_gravity="center_vertical"
700 android:src="@drawable/refresh_enabled"
701 app:tint="@color/blue_icon_selector"
702 android:contentDescription="@string/swipe_to_refresh" />
705 android:id="@+id/swipe_to_refresh_spinner"
706 android:layout_height="wrap_content"
707 android:layout_width="match_parent" />
711 android:id="@+id/swipe_to_refresh_textview"
712 android:layout_height="wrap_content"
713 android:layout_width="match_parent"
714 android:layout_marginStart="45dp"
715 android:layout_marginEnd="36dp"
716 android:textSize="13sp" />
719 <!-- WebView Theme. -->
721 android:id="@+id/webview_theme_linearlayout"
722 android:layout_height="wrap_content"
723 android:layout_width="match_parent"
724 android:orientation="vertical"
725 android:padding="12dp" >
728 android:layout_height="wrap_content"
729 android:layout_width="match_parent"
730 android:text="@string/webview_theme" />
733 android:layout_height="wrap_content"
734 android:layout_width="match_parent"
735 android:orientation="horizontal" >
738 android:id="@+id/webview_theme_imageview"
739 android:layout_height="wrap_content"
740 android:layout_width="wrap_content"
741 android:layout_marginTop="1dp"
742 android:layout_marginEnd="10dp"
743 android:layout_gravity="center_vertical"
744 android:src="@drawable/webview_light_theme"
745 app:tint="@color/blue_icon_selector"
746 android:contentDescription="@string/webview_theme" />
749 android:id="@+id/webview_theme_spinner"
750 android:layout_height="wrap_content"
751 android:layout_width="match_parent" />
755 android:id="@+id/webview_theme_textview"
756 android:layout_height="wrap_content"
757 android:layout_width="match_parent"
758 android:layout_marginStart="45dp"
759 android:layout_marginEnd="36dp"
760 android:textSize="13sp" />
763 <!-- Wide Viewport. -->
765 android:id="@+id/wide_viewport_linearlayout"
766 android:layout_height="wrap_content"
767 android:layout_width="match_parent"
768 android:orientation="vertical"
769 android:padding="12dp" >
772 android:layout_height="wrap_content"
773 android:layout_width="match_parent"
774 android:text="@string/wide_viewport" />
777 android:layout_height="wrap_content"
778 android:layout_width="match_parent"
779 android:orientation="horizontal" >
782 android:id="@+id/wide_viewport_imageview"
783 android:layout_height="wrap_content"
784 android:layout_width="wrap_content"
785 android:layout_marginTop="1dp"
786 android:layout_marginEnd="10dp"
787 android:layout_gravity="center_vertical"
788 android:src="@drawable/wide_viewport_enabled"
789 app:tint="@color/blue_icon_selector"
790 android:contentDescription="@string/wide_viewport" />
793 android:id="@+id/wide_viewport_spinner"
794 android:layout_height="wrap_content"
795 android:layout_width="match_parent" />
799 android:id="@+id/wide_viewport_textview"
800 android:layout_height="wrap_content"
801 android:layout_width="match_parent"
802 android:layout_marginStart="45dp"
803 android:layout_marginEnd="36dp"
804 android:textSize="13sp" />
807 <!-- Display Images. -->
809 android:id="@+id/display_images_linearlayout"
810 android:layout_height="wrap_content"
811 android:layout_width="match_parent"
812 android:orientation="vertical"
813 android:padding="12dp" >
816 android:layout_height="wrap_content"
817 android:layout_width="match_parent"
818 android:text="@string/display_images" />
821 android:layout_height="wrap_content"
822 android:layout_width="match_parent"
823 android:orientation="horizontal" >
826 android:id="@+id/display_images_imageview"
827 android:layout_height="wrap_content"
828 android:layout_width="wrap_content"
829 android:layout_marginTop="1dp"
830 android:layout_marginEnd="10dp"
831 android:layout_gravity="center_vertical"
832 android:src="@drawable/images_enabled"
833 app:tint="@color/blue_icon_selector"
834 android:contentDescription="@string/display_webpage_images" />
837 android:id="@+id/display_images_spinner"
838 android:layout_height="wrap_content"
839 android:layout_width="match_parent" />
843 android:id="@+id/display_images_textview"
844 android:layout_height="wrap_content"
845 android:layout_width="match_parent"
846 android:layout_marginStart="45dp"
847 android:layout_marginEnd="36dp"
848 android:textSize="13sp" />
851 <!-- Pinned SSL Certificate -->
853 android:layout_height="wrap_content"
854 android:layout_width="match_parent"
855 android:orientation="vertical"
856 android:layout_marginTop="18dp"
857 android:layout_marginBottom="18dp"
858 android:layout_marginStart="12dp"
859 android:layout_marginEnd="12dp" >
863 android:layout_height="wrap_content"
864 android:layout_width="match_parent"
865 android:orientation="horizontal" >
868 android:id="@+id/pinned_ssl_certificate_imageview"
869 android:layout_height="wrap_content"
870 android:layout_width="wrap_content"
871 android:layout_marginTop="1dp"
872 android:layout_marginEnd="10dp"
873 android:layout_gravity="center_vertical"
874 android:src="@drawable/ssl_certificate"
875 app:tint="@color/blue_icon_selector"
876 tools:ignore="contentDescription" />
878 <androidx.appcompat.widget.SwitchCompat
879 android:id="@+id/pinned_ssl_certificate_switch"
880 android:layout_height="wrap_content"
881 android:layout_width="match_parent"
882 android:layout_marginStart="8dp"
883 android:text="@string/pinned_ssl_certificate"
884 android:textColor="?android:textColorPrimary"
885 android:textSize="18sp" />
888 <!-- Saved Certificate -->
889 <androidx.cardview.widget.CardView
890 android:id="@+id/saved_ssl_certificate_cardview"
891 android:layout_height="wrap_content"
892 android:layout_width="match_parent"
893 android:layout_marginTop="10dp"
894 android:layout_marginStart="10dp"
895 android:layout_marginEnd="10dp" >
898 android:id="@+id/saved_ssl_certificate_linearlayout"
899 android:layout_height="wrap_content"
900 android:layout_width="match_parent"
901 android:orientation="vertical"
902 android:padding="10dp" >
905 android:id="@+id/saved_ssl_certificate_radiobutton"
906 android:layout_height="wrap_content"
907 android:layout_width="match_parent"
908 android:text="@string/saved_ssl_certificate"
909 android:textSize="17sp"
910 android:textAllCaps="true"
911 android:textStyle="bold"
912 android:textColor="?android:textColorPrimary"
913 tools:ignore="TooManyViews" />
916 android:layout_height="wrap_content"
917 android:layout_width="match_parent"
918 android:layout_marginStart="32dp"
919 android:orientation="vertical" >
921 <!-- Saved Certificate Issued To. -->
923 android:layout_height="wrap_content"
924 android:layout_width="match_parent"
925 android:text="@string/issued_to"
926 android:textAllCaps="true"
927 android:textStyle="bold"
928 android:textColor="@color/blue_title_text" />
931 android:id="@+id/saved_ssl_certificate_issued_to_cname"
932 android:layout_height="wrap_content"
933 android:layout_width="match_parent" />
936 android:id="@+id/saved_ssl_certificate_issued_to_oname"
937 android:layout_height="wrap_content"
938 android:layout_width="match_parent" />
941 android:id="@+id/saved_ssl_certificate_issued_to_uname"
942 android:layout_height="wrap_content"
943 android:layout_width="match_parent"/>
945 <!-- Saved Certificate Issued By. -->
947 android:layout_height="wrap_content"
948 android:layout_width="match_parent"
949 android:layout_marginTop="15dp"
950 android:text="@string/issued_by"
951 android:textAllCaps="true"
952 android:textStyle="bold"
953 android:textColor="@color/blue_title_text"/>
956 android:id="@+id/saved_ssl_certificate_issued_by_cname"
957 android:layout_height="wrap_content"
958 android:layout_width="match_parent" />
961 android:id="@+id/saved_ssl_certificate_issued_by_oname"
962 android:layout_height="wrap_content"
963 android:layout_width="match_parent" />
966 android:id="@+id/saved_ssl_certificate_issued_by_uname"
967 android:layout_height="wrap_content"
968 android:layout_width="match_parent" />
970 <!-- Saved Certificate Valid Dates. -->
972 android:layout_height="wrap_content"
973 android:layout_width="match_parent"
974 android:layout_marginTop="15dp"
975 android:text="@string/valid_dates"
976 android:textAllCaps="true"
977 android:textStyle="bold"
978 android:textColor="@color/blue_title_text"/>
981 android:id="@+id/saved_ssl_certificate_start_date"
982 android:layout_height="wrap_content"
983 android:layout_width="match_parent" />
986 android:id="@+id/saved_ssl_certificate_end_date"
987 android:layout_height="wrap_content"
988 android:layout_width="match_parent" />
991 </androidx.cardview.widget.CardView>
993 <!-- Current Website Certificate -->
994 <androidx.cardview.widget.CardView
995 android:id="@+id/current_website_certificate_cardview"
996 android:layout_height="wrap_content"
997 android:layout_width="match_parent"
998 android:layout_margin="10dp" >
1001 android:id="@+id/current_website_certificate_linearlayout"
1002 android:layout_height="wrap_content"
1003 android:layout_width="match_parent"
1004 android:orientation="vertical"
1005 android:padding="10dp" >
1008 android:id="@+id/current_website_certificate_radiobutton"
1009 android:layout_height="wrap_content"
1010 android:layout_width="match_parent"
1011 android:text="@string/current_website_ssl_certificate"
1012 android:textSize="17sp"
1013 android:textAllCaps="true"
1014 android:textStyle="bold"
1015 android:textColor="?android:textColorPrimary" />
1018 android:layout_height="wrap_content"
1019 android:layout_width="match_parent"
1020 android:layout_marginStart="32dp"
1021 android:orientation="vertical" >
1023 <!-- Current Website Certificate Issued To. -->
1025 android:layout_height="wrap_content"
1026 android:layout_width="match_parent"
1027 android:text="@string/issued_to"
1028 android:textAllCaps="true"
1029 android:textStyle="bold"
1030 android:textColor="@color/blue_title_text" />
1033 android:id="@+id/current_website_certificate_issued_to_cname"
1034 android:layout_height="wrap_content"
1035 android:layout_width="match_parent" />
1038 android:id="@+id/current_website_certificate_issued_to_oname"
1039 android:layout_height="wrap_content"
1040 android:layout_width="match_parent" />
1043 android:id="@+id/current_website_certificate_issued_to_uname"
1044 android:layout_height="wrap_content"
1045 android:layout_width="match_parent" />
1047 <!-- Current Website Certificate Issued By. -->
1049 android:layout_height="wrap_content"
1050 android:layout_width="match_parent"
1051 android:layout_marginTop="15dp"
1052 android:text="@string/issued_by"
1053 android:textAllCaps="true"
1054 android:textStyle="bold"
1055 android:textColor="@color/blue_title_text" />
1058 android:id="@+id/current_website_certificate_issued_by_cname"
1059 android:layout_height="wrap_content"
1060 android:layout_width="match_parent" />
1063 android:id="@+id/current_website_certificate_issued_by_oname"
1064 android:layout_height="wrap_content"
1065 android:layout_width="match_parent" />
1068 android:id="@+id/current_website_certificate_issued_by_uname"
1069 android:layout_height="wrap_content"
1070 android:layout_width="match_parent" />
1072 <!-- Current Website Certificate Valid Dates. -->
1074 android:layout_height="wrap_content"
1075 android:layout_width="match_parent"
1076 android:layout_marginTop="15dp"
1077 android:text="@string/valid_dates"
1078 android:textAllCaps="true"
1079 android:textStyle="bold"
1080 android:textColor="@color/blue_title_text" />
1083 android:id="@+id/current_website_certificate_start_date"
1084 android:layout_height="wrap_content"
1085 android:layout_width="match_parent" />
1088 android:id="@+id/current_website_certificate_end_date"
1089 android:layout_height="wrap_content"
1090 android:layout_width="match_parent" />
1093 </androidx.cardview.widget.CardView>
1095 <!-- Load An Encrypted Website Instructions. -->
1097 android:id="@+id/no_current_website_certificate"
1098 android:layout_height="wrap_content"
1099 android:layout_width="match_parent"
1100 android:layout_marginTop="10dp"
1101 android:layout_marginBottom="10dp"
1102 android:layout_marginStart="40dp"
1103 android:layout_marginEnd="40dp"
1104 android:gravity="center_horizontal"
1105 android:text="@string/load_an_encrypted_website" />
1108 <!-- Pinned IP Addresses -->
1110 android:layout_height="wrap_content"
1111 android:layout_width="match_parent"
1112 android:orientation="vertical"
1113 android:layout_marginTop="18dp"
1114 android:layout_marginBottom="18dp"
1115 android:layout_marginStart="12dp"
1116 android:layout_marginEnd="12dp" >
1120 android:layout_height="wrap_content"
1121 android:layout_width="match_parent"
1122 android:orientation="horizontal" >
1125 android:id="@+id/pinned_ip_addresses_imageview"
1126 android:layout_height="wrap_content"
1127 android:layout_width="wrap_content"
1128 android:layout_marginTop="1dp"
1129 android:layout_marginEnd="10dp"
1130 android:layout_gravity="center_vertical"
1131 android:src="@drawable/ssl_certificate"
1132 app:tint="@color/blue_icon_selector"
1133 tools:ignore="contentDescription" />
1135 <androidx.appcompat.widget.SwitchCompat
1136 android:id="@+id/pinned_ip_addresses_switch"
1137 android:layout_height="wrap_content"
1138 android:layout_width="match_parent"
1139 android:layout_marginStart="8dp"
1140 android:text="@string/pinned_ip_addresses"
1141 android:textColor="?android:textColorPrimary"
1142 android:textSize="18sp" />
1145 <!-- Saved IP Addresses -->
1146 <androidx.cardview.widget.CardView
1147 android:id="@+id/saved_ip_addresses_cardview"
1148 android:layout_height="wrap_content"
1149 android:layout_width="match_parent"
1150 android:layout_marginTop="10dp"
1151 android:layout_marginStart="10dp"
1152 android:layout_marginEnd="10dp" >
1155 android:id="@+id/saved_ip_addresses_linearlayout"
1156 android:layout_height="wrap_content"
1157 android:layout_width="match_parent"
1158 android:orientation="vertical"
1159 android:padding="10dp" >
1162 android:id="@+id/saved_ip_addresses_radiobutton"
1163 android:layout_height="wrap_content"
1164 android:layout_width="match_parent"
1165 android:text="@string/saved_ip_addresses"
1166 android:textSize="17sp"
1167 android:textAllCaps="true"
1168 android:textStyle="bold"
1169 android:textColor="?android:textColorPrimary" />
1172 android:id="@+id/saved_ip_addresses_textview"
1173 android:layout_height="wrap_content"
1174 android:layout_width="match_parent"
1175 android:layout_marginStart="32dp"
1176 android:textColor="@color/blue_text" />
1178 </androidx.cardview.widget.CardView>
1180 <androidx.cardview.widget.CardView
1181 android:id="@+id/current_ip_addresses_cardview"
1182 android:layout_height="wrap_content"
1183 android:layout_width="match_parent"
1184 android:layout_margin="10dp">
1187 android:id="@+id/current_ip_addresses_linearlayout"
1188 android:layout_height="wrap_content"
1189 android:layout_width="match_parent"
1190 android:orientation="vertical"
1191 android:padding="10dp" >
1194 android:id="@+id/current_ip_addresses_radiobutton"
1195 android:layout_height="wrap_content"
1196 android:layout_width="match_parent"
1197 android:text="@string/current_ip_addresses"
1198 android:textSize="17sp"
1199 android:textAllCaps="true"
1200 android:textStyle="bold"
1201 android:textColor="?android:textColorPrimary" />
1204 android:id="@+id/current_ip_addresses_textview"
1205 android:layout_height="wrap_content"
1206 android:layout_width="match_parent"
1207 android:layout_marginStart="32dp"
1208 android:textColor="@color/blue_text" />
1210 </androidx.cardview.widget.CardView>