1 <?xml version="1.0" encoding="utf-8"?>
4 Copyright 2017-2024 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" />
218 android:id="@+id/user_agent_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/user_agent" />
230 android:layout_height="wrap_content"
231 android:layout_width="match_parent"
232 android:orientation="horizontal" >
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/user_agent"
241 app:tint="@color/blue_icon"
242 android:contentDescription="@string/user_agent" />
245 android:id="@+id/user_agent_spinner"
246 android:layout_height="wrap_content"
247 android:layout_width="match_parent" />
251 android:id="@+id/user_agent_textview"
252 android:layout_height="wrap_content"
253 android:layout_width="match_parent"
254 android:layout_marginStart="45dp"
255 android:layout_marginEnd="36dp"
256 android:textSize="13sp" />
259 android:id="@+id/custom_user_agent_edittext"
260 android:layout_height="wrap_content"
261 android:layout_width="match_parent"
262 android:layout_marginStart="40dp"
263 android:layout_marginEnd="60dp"
264 android:inputType="textUri"
265 android:hint="@string/custom_user_agent"
266 android:importantForAutofill="no" />
271 android:id="@+id/easylist_linearlayout"
272 android:layout_height="wrap_content"
273 android:layout_width="match_parent"
274 android:orientation="vertical"
275 android:padding="12dp" >
278 android:layout_height="wrap_content"
279 android:layout_width="match_parent"
280 android:text="@string/easylist" />
283 android:layout_height="wrap_content"
284 android:layout_width="match_parent"
285 android:orientation="horizontal" >
288 android:id="@+id/easylist_imageview"
289 android:layout_height="wrap_content"
290 android:layout_width="wrap_content"
291 android:layout_marginTop="1dp"
292 android:layout_marginEnd="10dp"
293 android:layout_gravity="center_vertical"
294 android:src="@drawable/block_ads_enabled"
295 app:tint="@color/blue_icon_selector"
296 android:contentDescription="@string/easylist" />
299 android:id="@+id/easylist_spinner"
300 android:layout_height="wrap_content"
301 android:layout_width="match_parent" />
305 android:id="@+id/easylist_textview"
306 android:layout_height="wrap_content"
307 android:layout_width="match_parent"
308 android:layout_marginStart="45dp"
309 android:layout_marginEnd="36dp"
310 android:textSize="13sp" />
313 <!-- EasyPrivacy. -->
315 android:id="@+id/easyprivacy_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/easyprivacy" />
327 android:layout_height="wrap_content"
328 android:layout_width="match_parent"
329 android:orientation="horizontal" >
332 android:id="@+id/easyprivacy_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_tracking_enabled"
339 app:tint="@color/blue_icon_selector"
340 android:contentDescription="@string/easyprivacy" />
343 android:id="@+id/easyprivacy_spinner"
344 android:layout_height="wrap_content"
345 android:layout_width="match_parent" />
349 android:id="@+id/easyprivacy_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 <!-- Fanboy's Annoyance List. -->
359 android:id="@+id/fanboys_annoyance_list_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/fanboys_annoyance_list" />
371 android:layout_height="wrap_content"
372 android:layout_width="match_parent"
373 android:orientation="horizontal" >
376 android:id="@+id/fanboys_annoyance_list_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/social_media_enabled"
383 app:tint="@color/blue_icon_selector"
384 android:contentDescription="@string/fanboys_annoyance_list" />
387 android:id="@+id/fanboys_annoyance_list_spinner"
388 android:layout_height="wrap_content"
389 android:layout_width="match_parent" />
393 android:id="@+id/fanboys_annoyance_list_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 Social Blocking List. -->
403 android:id="@+id/fanboys_social_blocking_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_social_blocking_list" />
415 android:layout_height="wrap_content"
416 android:layout_width="match_parent"
417 android:orientation="horizontal" >
420 android:id="@+id/fanboys_social_blocking_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_social_blocking_list" />
431 android:id="@+id/fanboys_social_blocking_list_spinner"
432 android:layout_height="wrap_content"
433 android:layout_width="match_parent" />
437 android:id="@+id/fanboys_social_blocking_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" />
447 android:id="@+id/ultralist_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/ultralist" />
459 android:layout_height="wrap_content"
460 android:layout_width="match_parent"
461 android:orientation="horizontal" >
464 android:id="@+id/ultralist_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/block_ads_enabled"
471 app:tint="@color/blue_icon_selector"
472 android:contentDescription="@string/ultralist" />
475 android:id="@+id/ultralist_spinner"
476 android:layout_height="wrap_content"
477 android:layout_width="match_parent" />
481 android:id="@+id/ultralist_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" />
489 <!-- UltraPrivacy. -->
491 android:id="@+id/ultraprivacy_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/ultraprivacy" />
503 android:layout_height="wrap_content"
504 android:layout_width="match_parent"
505 android:orientation="horizontal" >
508 android:id="@+id/ultraprivacy_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_tracking_enabled"
515 app:tint="@color/blue_icon_selector"
516 android:contentDescription="@string/ultraprivacy" />
519 android:id="@+id/ultraprivacy_spinner"
520 android:layout_height="wrap_content"
521 android:layout_width="match_parent" />
525 android:id="@+id/ultraprivacy_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 <!-- Block All Third Party Requests. -->
535 android:id="@+id/block_all_third_party_requests_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/block_all_third_party_requests" />
547 android:layout_height="wrap_content"
548 android:layout_width="match_parent"
549 android:orientation="horizontal" >
552 android:id="@+id/block_all_third_party_requests_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_all_third_party_requests_enabled"
559 app:tint="@color/blue_icon_selector"
560 android:contentDescription="@string/block_all_third_party_requests" />
563 android:id="@+id/block_all_third_party_requests_spinner"
564 android:layout_height="wrap_content"
565 android:layout_width="match_parent"
566 tools:ignore="TooManyViews" />
570 android:id="@+id/block_all_third_party_requests_textview"
571 android:layout_height="wrap_content"
572 android:layout_width="match_parent"
573 android:layout_marginStart="45dp"
574 android:layout_marginEnd="36dp"
575 android:textSize="13sp" />
580 android:id="@+id/font_size_linearlayout"
581 android:layout_height="wrap_content"
582 android:layout_width="match_parent"
583 android:orientation="vertical"
584 android:padding="12dp" >
587 android:layout_height="wrap_content"
588 android:layout_width="match_parent"
589 android:text="@string/font_size" />
592 android:layout_height="wrap_content"
593 android:layout_width="match_parent"
594 android:orientation="horizontal" >
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/font_size"
603 app:tint="@color/blue_icon"
604 android:contentDescription="@string/font_size" />
607 android:id="@+id/font_size_spinner"
608 android:layout_height="wrap_content"
609 android:layout_width="match_parent" />
613 android:id="@+id/default_font_size_textview"
614 android:layout_height="wrap_content"
615 android:layout_width="match_parent"
616 android:layout_marginStart="45dp"
617 android:layout_marginEnd="36dp"
618 android:textSize="13sp" />
621 android:id="@+id/custom_font_size_edittext"
622 android:layout_height="wrap_content"
623 android:layout_width="match_parent"
624 android:layout_marginStart="40dp"
625 android:layout_marginEnd="60dp"
626 android:inputType="number"
627 android:hint="@string/font_size"
628 android:importantForAutofill="no" />
631 <!-- Swipe to Refresh. -->
633 android:id="@+id/swipe_to_refresh_linearlayout"
634 android:layout_height="wrap_content"
635 android:layout_width="match_parent"
636 android:orientation="vertical"
637 android:padding="12dp" >
640 android:layout_height="wrap_content"
641 android:layout_width="match_parent"
642 android:text="@string/swipe_to_refresh" />
645 android:layout_height="wrap_content"
646 android:layout_width="match_parent"
647 android:orientation="horizontal" >
650 android:id="@+id/swipe_to_refresh_imageview"
651 android:layout_height="wrap_content"
652 android:layout_width="wrap_content"
653 android:layout_marginTop="1dp"
654 android:layout_marginEnd="10dp"
655 android:layout_gravity="center_vertical"
656 android:src="@drawable/refresh_enabled"
657 app:tint="@color/blue_icon_selector"
658 android:contentDescription="@string/swipe_to_refresh" />
661 android:id="@+id/swipe_to_refresh_spinner"
662 android:layout_height="wrap_content"
663 android:layout_width="match_parent" />
667 android:id="@+id/swipe_to_refresh_textview"
668 android:layout_height="wrap_content"
669 android:layout_width="match_parent"
670 android:layout_marginStart="45dp"
671 android:layout_marginEnd="36dp"
672 android:textSize="13sp" />
675 <!-- WebView Theme. -->
677 android:id="@+id/webview_theme_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/webview_theme" />
689 android:layout_height="wrap_content"
690 android:layout_width="match_parent"
691 android:orientation="horizontal" >
694 android:id="@+id/webview_theme_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/webview_light_theme"
701 app:tint="@color/blue_icon_selector"
702 android:contentDescription="@string/webview_theme" />
705 android:id="@+id/webview_theme_spinner"
706 android:layout_height="wrap_content"
707 android:layout_width="match_parent" />
711 android:id="@+id/webview_theme_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 <!-- Wide Viewport. -->
721 android:id="@+id/wide_viewport_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/wide_viewport" />
733 android:layout_height="wrap_content"
734 android:layout_width="match_parent"
735 android:orientation="horizontal" >
738 android:id="@+id/wide_viewport_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/wide_viewport_enabled"
745 app:tint="@color/blue_icon_selector"
746 android:contentDescription="@string/wide_viewport" />
749 android:id="@+id/wide_viewport_spinner"
750 android:layout_height="wrap_content"
751 android:layout_width="match_parent" />
755 android:id="@+id/wide_viewport_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 <!-- Display Images. -->
765 android:id="@+id/display_images_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/display_images" />
777 android:layout_height="wrap_content"
778 android:layout_width="match_parent"
779 android:orientation="horizontal" >
782 android:id="@+id/display_images_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/images_enabled"
789 app:tint="@color/blue_icon_selector"
790 android:contentDescription="@string/display_webpage_images" />
793 android:id="@+id/display_images_spinner"
794 android:layout_height="wrap_content"
795 android:layout_width="match_parent" />
799 android:id="@+id/display_images_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 <!-- Pinned SSL Certificate -->
809 android:layout_height="wrap_content"
810 android:layout_width="match_parent"
811 android:orientation="vertical"
812 android:layout_marginTop="18dp"
813 android:layout_marginBottom="18dp"
814 android:layout_marginStart="12dp"
815 android:layout_marginEnd="12dp" >
819 android:layout_height="wrap_content"
820 android:layout_width="match_parent"
821 android:orientation="horizontal" >
824 android:id="@+id/pinned_ssl_certificate_imageview"
825 android:layout_height="wrap_content"
826 android:layout_width="wrap_content"
827 android:layout_marginTop="1dp"
828 android:layout_marginEnd="10dp"
829 android:layout_gravity="center_vertical"
830 android:src="@drawable/ssl_certificate"
831 app:tint="@color/blue_icon_selector"
832 tools:ignore="contentDescription" />
834 <androidx.appcompat.widget.SwitchCompat
835 android:id="@+id/pinned_ssl_certificate_switch"
836 android:layout_height="wrap_content"
837 android:layout_width="match_parent"
838 android:layout_marginStart="8dp"
839 android:text="@string/pinned_ssl_certificate"
840 android:textColor="?android:textColorPrimary"
841 android:textSize="18sp" />
844 <!-- Saved Certificate -->
845 <androidx.cardview.widget.CardView
846 android:id="@+id/saved_ssl_certificate_cardview"
847 android:layout_height="wrap_content"
848 android:layout_width="match_parent"
849 android:layout_marginTop="10dp"
850 android:layout_marginStart="10dp"
851 android:layout_marginEnd="10dp" >
854 android:id="@+id/saved_ssl_certificate_linearlayout"
855 android:layout_height="wrap_content"
856 android:layout_width="match_parent"
857 android:orientation="vertical"
858 android:padding="10dp" >
861 android:id="@+id/saved_ssl_certificate_radiobutton"
862 android:layout_height="wrap_content"
863 android:layout_width="match_parent"
864 android:text="@string/saved_ssl_certificate"
865 android:textSize="17sp"
866 android:textAllCaps="true"
867 android:textStyle="bold"
868 android:textColor="?android:textColorPrimary"
869 tools:ignore="TooManyViews" />
872 android:layout_height="wrap_content"
873 android:layout_width="match_parent"
874 android:layout_marginStart="32dp"
875 android:orientation="vertical" >
877 <!-- Saved Certificate Issued To. -->
879 android:layout_height="wrap_content"
880 android:layout_width="match_parent"
881 android:text="@string/issued_to"
882 android:textAllCaps="true"
883 android:textStyle="bold"
884 android:textColor="@color/blue_title_text" />
887 android:id="@+id/saved_ssl_certificate_issued_to_cname"
888 android:layout_height="wrap_content"
889 android:layout_width="match_parent" />
892 android:id="@+id/saved_ssl_certificate_issued_to_oname"
893 android:layout_height="wrap_content"
894 android:layout_width="match_parent" />
897 android:id="@+id/saved_ssl_certificate_issued_to_uname"
898 android:layout_height="wrap_content"
899 android:layout_width="match_parent"/>
901 <!-- Saved Certificate Issued By. -->
903 android:layout_height="wrap_content"
904 android:layout_width="match_parent"
905 android:layout_marginTop="15dp"
906 android:text="@string/issued_by"
907 android:textAllCaps="true"
908 android:textStyle="bold"
909 android:textColor="@color/blue_title_text"/>
912 android:id="@+id/saved_ssl_certificate_issued_by_cname"
913 android:layout_height="wrap_content"
914 android:layout_width="match_parent" />
917 android:id="@+id/saved_ssl_certificate_issued_by_oname"
918 android:layout_height="wrap_content"
919 android:layout_width="match_parent" />
922 android:id="@+id/saved_ssl_certificate_issued_by_uname"
923 android:layout_height="wrap_content"
924 android:layout_width="match_parent" />
926 <!-- Saved Certificate Valid Dates. -->
928 android:layout_height="wrap_content"
929 android:layout_width="match_parent"
930 android:layout_marginTop="15dp"
931 android:text="@string/valid_dates"
932 android:textAllCaps="true"
933 android:textStyle="bold"
934 android:textColor="@color/blue_title_text"/>
937 android:id="@+id/saved_ssl_certificate_start_date"
938 android:layout_height="wrap_content"
939 android:layout_width="match_parent" />
942 android:id="@+id/saved_ssl_certificate_end_date"
943 android:layout_height="wrap_content"
944 android:layout_width="match_parent" />
947 </androidx.cardview.widget.CardView>
949 <!-- Current Website Certificate -->
950 <androidx.cardview.widget.CardView
951 android:id="@+id/current_website_certificate_cardview"
952 android:layout_height="wrap_content"
953 android:layout_width="match_parent"
954 android:layout_margin="10dp" >
957 android:id="@+id/current_website_certificate_linearlayout"
958 android:layout_height="wrap_content"
959 android:layout_width="match_parent"
960 android:orientation="vertical"
961 android:padding="10dp" >
964 android:id="@+id/current_website_certificate_radiobutton"
965 android:layout_height="wrap_content"
966 android:layout_width="match_parent"
967 android:text="@string/current_website_ssl_certificate"
968 android:textSize="17sp"
969 android:textAllCaps="true"
970 android:textStyle="bold"
971 android:textColor="?android:textColorPrimary" />
974 android:layout_height="wrap_content"
975 android:layout_width="match_parent"
976 android:layout_marginStart="32dp"
977 android:orientation="vertical" >
979 <!-- Current Website Certificate Issued To. -->
981 android:layout_height="wrap_content"
982 android:layout_width="match_parent"
983 android:text="@string/issued_to"
984 android:textAllCaps="true"
985 android:textStyle="bold"
986 android:textColor="@color/blue_title_text" />
989 android:id="@+id/current_website_certificate_issued_to_cname"
990 android:layout_height="wrap_content"
991 android:layout_width="match_parent" />
994 android:id="@+id/current_website_certificate_issued_to_oname"
995 android:layout_height="wrap_content"
996 android:layout_width="match_parent" />
999 android:id="@+id/current_website_certificate_issued_to_uname"
1000 android:layout_height="wrap_content"
1001 android:layout_width="match_parent" />
1003 <!-- Current Website Certificate Issued By. -->
1005 android:layout_height="wrap_content"
1006 android:layout_width="match_parent"
1007 android:layout_marginTop="15dp"
1008 android:text="@string/issued_by"
1009 android:textAllCaps="true"
1010 android:textStyle="bold"
1011 android:textColor="@color/blue_title_text" />
1014 android:id="@+id/current_website_certificate_issued_by_cname"
1015 android:layout_height="wrap_content"
1016 android:layout_width="match_parent" />
1019 android:id="@+id/current_website_certificate_issued_by_oname"
1020 android:layout_height="wrap_content"
1021 android:layout_width="match_parent" />
1024 android:id="@+id/current_website_certificate_issued_by_uname"
1025 android:layout_height="wrap_content"
1026 android:layout_width="match_parent" />
1028 <!-- Current Website Certificate Valid Dates. -->
1030 android:layout_height="wrap_content"
1031 android:layout_width="match_parent"
1032 android:layout_marginTop="15dp"
1033 android:text="@string/valid_dates"
1034 android:textAllCaps="true"
1035 android:textStyle="bold"
1036 android:textColor="@color/blue_title_text" />
1039 android:id="@+id/current_website_certificate_start_date"
1040 android:layout_height="wrap_content"
1041 android:layout_width="match_parent" />
1044 android:id="@+id/current_website_certificate_end_date"
1045 android:layout_height="wrap_content"
1046 android:layout_width="match_parent" />
1049 </androidx.cardview.widget.CardView>
1051 <!-- Load An Encrypted Website Instructions. -->
1053 android:id="@+id/no_current_website_certificate"
1054 android:layout_height="wrap_content"
1055 android:layout_width="match_parent"
1056 android:layout_marginTop="10dp"
1057 android:layout_marginBottom="10dp"
1058 android:layout_marginStart="40dp"
1059 android:layout_marginEnd="40dp"
1060 android:gravity="center_horizontal"
1061 android:text="@string/load_an_encrypted_website" />
1064 <!-- Pinned IP Addresses -->
1066 android:layout_height="wrap_content"
1067 android:layout_width="match_parent"
1068 android:orientation="vertical"
1069 android:layout_marginTop="18dp"
1070 android:layout_marginBottom="18dp"
1071 android:layout_marginStart="12dp"
1072 android:layout_marginEnd="12dp" >
1076 android:layout_height="wrap_content"
1077 android:layout_width="match_parent"
1078 android:orientation="horizontal" >
1081 android:id="@+id/pinned_ip_addresses_imageview"
1082 android:layout_height="wrap_content"
1083 android:layout_width="wrap_content"
1084 android:layout_marginTop="1dp"
1085 android:layout_marginEnd="10dp"
1086 android:layout_gravity="center_vertical"
1087 android:src="@drawable/ssl_certificate"
1088 app:tint="@color/blue_icon_selector"
1089 tools:ignore="contentDescription" />
1091 <androidx.appcompat.widget.SwitchCompat
1092 android:id="@+id/pinned_ip_addresses_switch"
1093 android:layout_height="wrap_content"
1094 android:layout_width="match_parent"
1095 android:layout_marginStart="8dp"
1096 android:text="@string/pinned_ip_addresses"
1097 android:textColor="?android:textColorPrimary"
1098 android:textSize="18sp" />
1101 <!-- Saved IP Addresses -->
1102 <androidx.cardview.widget.CardView
1103 android:id="@+id/saved_ip_addresses_cardview"
1104 android:layout_height="wrap_content"
1105 android:layout_width="match_parent"
1106 android:layout_marginTop="10dp"
1107 android:layout_marginStart="10dp"
1108 android:layout_marginEnd="10dp" >
1111 android:id="@+id/saved_ip_addresses_linearlayout"
1112 android:layout_height="wrap_content"
1113 android:layout_width="match_parent"
1114 android:orientation="vertical"
1115 android:padding="10dp" >
1118 android:id="@+id/saved_ip_addresses_radiobutton"
1119 android:layout_height="wrap_content"
1120 android:layout_width="match_parent"
1121 android:text="@string/saved_ip_addresses"
1122 android:textSize="17sp"
1123 android:textAllCaps="true"
1124 android:textStyle="bold"
1125 android:textColor="?android:textColorPrimary" />
1128 android:id="@+id/saved_ip_addresses_textview"
1129 android:layout_height="wrap_content"
1130 android:layout_width="match_parent"
1131 android:layout_marginStart="32dp"
1132 android:textColor="@color/blue_text" />
1134 </androidx.cardview.widget.CardView>
1136 <androidx.cardview.widget.CardView
1137 android:id="@+id/current_ip_addresses_cardview"
1138 android:layout_height="wrap_content"
1139 android:layout_width="match_parent"
1140 android:layout_margin="10dp">
1143 android:id="@+id/current_ip_addresses_linearlayout"
1144 android:layout_height="wrap_content"
1145 android:layout_width="match_parent"
1146 android:orientation="vertical"
1147 android:padding="10dp" >
1150 android:id="@+id/current_ip_addresses_radiobutton"
1151 android:layout_height="wrap_content"
1152 android:layout_width="match_parent"
1153 android:text="@string/current_ip_addresses"
1154 android:textSize="17sp"
1155 android:textAllCaps="true"
1156 android:textStyle="bold"
1157 android:textColor="?android:textColorPrimary" />
1160 android:id="@+id/current_ip_addresses_textview"
1161 android:layout_height="wrap_content"
1162 android:layout_width="match_parent"
1163 android:layout_marginStart="32dp"
1164 android:textColor="@color/blue_text" />
1166 </androidx.cardview.widget.CardView>