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/user_agent_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/user_agent" />
274 android:layout_height="wrap_content"
275 android:layout_width="match_parent"
276 android:orientation="horizontal" >
279 android:layout_height="wrap_content"
280 android:layout_width="wrap_content"
281 android:layout_marginTop="1dp"
282 android:layout_marginEnd="10dp"
283 android:layout_gravity="center_vertical"
284 android:src="@drawable/user_agent"
285 app:tint="@color/blue_icon"
286 android:contentDescription="@string/user_agent" />
289 android:id="@+id/user_agent_spinner"
290 android:layout_height="wrap_content"
291 android:layout_width="match_parent" />
295 android:id="@+id/user_agent_textview"
296 android:layout_height="wrap_content"
297 android:layout_width="match_parent"
298 android:layout_marginStart="45dp"
299 android:layout_marginEnd="36dp"
300 android:textSize="13sp" />
303 android:id="@+id/custom_user_agent_edittext"
304 android:layout_height="wrap_content"
305 android:layout_width="match_parent"
306 android:layout_marginStart="40dp"
307 android:layout_marginEnd="60dp"
308 android:inputType="textUri"
309 android:hint="@string/custom_user_agent"
310 android:importantForAutofill="no" />
315 android:id="@+id/easylist_linearlayout"
316 android:layout_height="wrap_content"
317 android:layout_width="match_parent"
318 android:orientation="vertical"
319 android:padding="12dp" >
322 android:layout_height="wrap_content"
323 android:layout_width="match_parent"
324 android:text="@string/easylist" />
327 android:layout_height="wrap_content"
328 android:layout_width="match_parent"
329 android:orientation="horizontal" >
332 android:id="@+id/easylist_imageview"
333 android:layout_height="wrap_content"
334 android:layout_width="wrap_content"
335 android:layout_marginTop="1dp"
336 android:layout_marginEnd="10dp"
337 android:layout_gravity="center_vertical"
338 android:src="@drawable/block_ads_enabled"
339 app:tint="@color/blue_icon_selector"
340 android:contentDescription="@string/easylist" />
343 android:id="@+id/easylist_spinner"
344 android:layout_height="wrap_content"
345 android:layout_width="match_parent" />
349 android:id="@+id/easylist_textview"
350 android:layout_height="wrap_content"
351 android:layout_width="match_parent"
352 android:layout_marginStart="45dp"
353 android:layout_marginEnd="36dp"
354 android:textSize="13sp" />
357 <!-- EasyPrivacy. -->
359 android:id="@+id/easyprivacy_linearlayout"
360 android:layout_height="wrap_content"
361 android:layout_width="match_parent"
362 android:orientation="vertical"
363 android:padding="12dp" >
366 android:layout_height="wrap_content"
367 android:layout_width="match_parent"
368 android:text="@string/easyprivacy" />
371 android:layout_height="wrap_content"
372 android:layout_width="match_parent"
373 android:orientation="horizontal" >
376 android:id="@+id/easyprivacy_imageview"
377 android:layout_height="wrap_content"
378 android:layout_width="wrap_content"
379 android:layout_marginTop="1dp"
380 android:layout_marginEnd="10dp"
381 android:layout_gravity="center_vertical"
382 android:src="@drawable/block_tracking_enabled"
383 app:tint="@color/blue_icon_selector"
384 android:contentDescription="@string/easyprivacy" />
387 android:id="@+id/easyprivacy_spinner"
388 android:layout_height="wrap_content"
389 android:layout_width="match_parent" />
393 android:id="@+id/easyprivacy_textview"
394 android:layout_height="wrap_content"
395 android:layout_width="match_parent"
396 android:layout_marginStart="45dp"
397 android:layout_marginEnd="36dp"
398 android:textSize="13sp" />
401 <!-- Fanboy's Annoyance List. -->
403 android:id="@+id/fanboys_annoyance_list_linearlayout"
404 android:layout_height="wrap_content"
405 android:layout_width="match_parent"
406 android:orientation="vertical"
407 android:padding="12dp" >
410 android:layout_height="wrap_content"
411 android:layout_width="match_parent"
412 android:text="@string/fanboys_annoyance_list" />
415 android:layout_height="wrap_content"
416 android:layout_width="match_parent"
417 android:orientation="horizontal" >
420 android:id="@+id/fanboys_annoyance_list_imageview"
421 android:layout_height="wrap_content"
422 android:layout_width="wrap_content"
423 android:layout_marginTop="1dp"
424 android:layout_marginEnd="10dp"
425 android:layout_gravity="center_vertical"
426 android:src="@drawable/social_media_enabled"
427 app:tint="@color/blue_icon_selector"
428 android:contentDescription="@string/fanboys_annoyance_list" />
431 android:id="@+id/fanboys_annoyance_list_spinner"
432 android:layout_height="wrap_content"
433 android:layout_width="match_parent" />
437 android:id="@+id/fanboys_annoyance_list_textview"
438 android:layout_height="wrap_content"
439 android:layout_width="match_parent"
440 android:layout_marginStart="45dp"
441 android:layout_marginEnd="36dp"
442 android:textSize="13sp" />
445 <!-- Fanboy's Social Blocking List. -->
447 android:id="@+id/fanboys_social_blocking_list_linearlayout"
448 android:layout_height="wrap_content"
449 android:layout_width="match_parent"
450 android:orientation="vertical"
451 android:padding="12dp" >
454 android:layout_height="wrap_content"
455 android:layout_width="match_parent"
456 android:text="@string/fanboys_social_blocking_list" />
459 android:layout_height="wrap_content"
460 android:layout_width="match_parent"
461 android:orientation="horizontal" >
464 android:id="@+id/fanboys_social_blocking_list_imageview"
465 android:layout_height="wrap_content"
466 android:layout_width="wrap_content"
467 android:layout_marginTop="1dp"
468 android:layout_marginEnd="10dp"
469 android:layout_gravity="center_vertical"
470 android:src="@drawable/social_media_enabled"
471 app:tint="@color/blue_icon_selector"
472 android:contentDescription="@string/fanboys_social_blocking_list" />
475 android:id="@+id/fanboys_social_blocking_list_spinner"
476 android:layout_height="wrap_content"
477 android:layout_width="match_parent" />
481 android:id="@+id/fanboys_social_blocking_list_textview"
482 android:layout_height="wrap_content"
483 android:layout_width="match_parent"
484 android:layout_marginStart="45dp"
485 android:layout_marginEnd="36dp"
486 android:textSize="13sp" />
491 android:id="@+id/ultralist_linearlayout"
492 android:layout_height="wrap_content"
493 android:layout_width="match_parent"
494 android:orientation="vertical"
495 android:padding="12dp" >
498 android:layout_height="wrap_content"
499 android:layout_width="match_parent"
500 android:text="@string/ultralist" />
503 android:layout_height="wrap_content"
504 android:layout_width="match_parent"
505 android:orientation="horizontal" >
508 android:id="@+id/ultralist_imageview"
509 android:layout_height="wrap_content"
510 android:layout_width="wrap_content"
511 android:layout_marginTop="1dp"
512 android:layout_marginEnd="10dp"
513 android:layout_gravity="center_vertical"
514 android:src="@drawable/block_ads_enabled"
515 app:tint="@color/blue_icon_selector"
516 android:contentDescription="@string/ultralist" />
519 android:id="@+id/ultralist_spinner"
520 android:layout_height="wrap_content"
521 android:layout_width="match_parent" />
525 android:id="@+id/ultralist_textview"
526 android:layout_height="wrap_content"
527 android:layout_width="match_parent"
528 android:layout_marginStart="45dp"
529 android:layout_marginEnd="36dp"
530 android:textSize="13sp" />
533 <!-- UltraPrivacy. -->
535 android:id="@+id/ultraprivacy_linearlayout"
536 android:layout_height="wrap_content"
537 android:layout_width="match_parent"
538 android:orientation="vertical"
539 android:padding="12dp" >
542 android:layout_height="wrap_content"
543 android:layout_width="match_parent"
544 android:text="@string/ultraprivacy" />
547 android:layout_height="wrap_content"
548 android:layout_width="match_parent"
549 android:orientation="horizontal" >
552 android:id="@+id/ultraprivacy_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/block_tracking_enabled"
559 app:tint="@color/blue_icon_selector"
560 android:contentDescription="@string/ultraprivacy" />
563 android:id="@+id/ultraprivacy_spinner"
564 android:layout_height="wrap_content"
565 android:layout_width="match_parent" />
569 android:id="@+id/ultraprivacy_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 <!-- Block All Third Party Requests. -->
579 android:id="@+id/block_all_third_party_requests_linearlayout"
580 android:layout_height="wrap_content"
581 android:layout_width="match_parent"
582 android:orientation="vertical"
583 android:padding="12dp" >
586 android:layout_height="wrap_content"
587 android:layout_width="match_parent"
588 android:text="@string/block_all_third_party_requests" />
591 android:layout_height="wrap_content"
592 android:layout_width="match_parent"
593 android:orientation="horizontal" >
596 android:id="@+id/block_all_third_party_requests_imageview"
597 android:layout_height="wrap_content"
598 android:layout_width="wrap_content"
599 android:layout_marginTop="1dp"
600 android:layout_marginEnd="10dp"
601 android:layout_gravity="center_vertical"
602 android:src="@drawable/block_all_third_party_requests_enabled"
603 app:tint="@color/blue_icon_selector"
604 android:contentDescription="@string/block_all_third_party_requests" />
607 android:id="@+id/block_all_third_party_requests_spinner"
608 android:layout_height="wrap_content"
609 android:layout_width="match_parent"
610 tools:ignore="TooManyViews" />
614 android:id="@+id/block_all_third_party_requests_textview"
615 android:layout_height="wrap_content"
616 android:layout_width="match_parent"
617 android:layout_marginStart="45dp"
618 android:layout_marginEnd="36dp"
619 android:textSize="13sp" />
624 android:id="@+id/font_size_linearlayout"
625 android:layout_height="wrap_content"
626 android:layout_width="match_parent"
627 android:orientation="vertical"
628 android:padding="12dp" >
631 android:layout_height="wrap_content"
632 android:layout_width="match_parent"
633 android:text="@string/font_size" />
636 android:layout_height="wrap_content"
637 android:layout_width="match_parent"
638 android:orientation="horizontal" >
641 android:layout_height="wrap_content"
642 android:layout_width="wrap_content"
643 android:layout_marginTop="1dp"
644 android:layout_marginEnd="10dp"
645 android:layout_gravity="center_vertical"
646 android:src="@drawable/font_size"
647 app:tint="@color/blue_icon"
648 android:contentDescription="@string/font_size" />
651 android:id="@+id/font_size_spinner"
652 android:layout_height="wrap_content"
653 android:layout_width="match_parent" />
657 android:id="@+id/default_font_size_textview"
658 android:layout_height="wrap_content"
659 android:layout_width="match_parent"
660 android:layout_marginStart="45dp"
661 android:layout_marginEnd="36dp"
662 android:textSize="13sp" />
665 android:id="@+id/custom_font_size_edittext"
666 android:layout_height="wrap_content"
667 android:layout_width="match_parent"
668 android:layout_marginStart="40dp"
669 android:layout_marginEnd="60dp"
670 android:inputType="number"
671 android:hint="@string/font_size"
672 android:importantForAutofill="no" />
675 <!-- Swipe to Refresh. -->
677 android:id="@+id/swipe_to_refresh_linearlayout"
678 android:layout_height="wrap_content"
679 android:layout_width="match_parent"
680 android:orientation="vertical"
681 android:padding="12dp" >
684 android:layout_height="wrap_content"
685 android:layout_width="match_parent"
686 android:text="@string/swipe_to_refresh" />
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>