]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/blob - app/src/main/res/layout/domain_settings_fragment.xml
Scroll to the beginning of the URL text box when it loses focus. https://redmine...
[PrivacyBrowserAndroid.git] / app / src / main / res / layout / domain_settings_fragment.xml
1 <?xml version="1.0" encoding="utf-8"?>
2
3 <!--
4   Copyright © 2017-2018 Soren Stoutner <soren@stoutner.com>.
5
6   This file is part of Privacy Browser <https://www.stoutner.com/privacy-browser>.
7
8   Privacy Browser is free software: you can redistribute it and/or modify
9   it under the terms of the GNU General Public License as published by
10   the Free Software Foundation, either version 3 of the License, or
11   (at your option) any later version.
12
13   Privacy Browser is distributed in the hope that it will be useful,
14   but WITHOUT ANY WARRANTY; without even the implied warranty of
15   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16   GNU General Public License for more details.
17
18   You should have received a copy of the GNU General Public License
19   along with Privacy Browser.  If not, see <http://www.gnu.org/licenses/>. -->
20
21 <ScrollView
22     android:id="@+id/domain_settings_scrollview"
23     xmlns:android="http://schemas.android.com/apk/res/android"
24     xmlns:tools="http://schemas.android.com/tools"
25     android:layout_height="wrap_content"
26     android:layout_width="match_parent"
27     android:focusable="true"
28     android:focusableInTouchMode="true"
29     android:descendantFocusability="beforeDescendants" >
30
31     <LinearLayout
32         xmlns:android="http://schemas.android.com/apk/res/android"
33         android:layout_height="wrap_content"
34         android:layout_width="match_parent"
35         android:layout_margin="12dp"
36         android:orientation="vertical"
37         android:divider="?android:attr/dividerVertical" >
38
39         <!-- Domain name. -->
40         <LinearLayout
41             android:layout_height="wrap_content"
42             android:layout_width="match_parent"
43             android:orientation="vertical" >
44
45             <LinearLayout
46                 android:layout_height="wrap_content"
47                 android:layout_width="match_parent"
48                 android:orientation="horizontal" >
49
50                 <ImageView
51                     android:layout_height="wrap_content"
52                     android:layout_width="wrap_content"
53                     android:layout_marginEnd="10dp"
54                     android:layout_marginBottom="12dp"
55                     android:layout_gravity="bottom"
56                     android:src="@drawable/domains"
57                     android:tint="?attr/domainSettingsIconTintColor"
58                     tools:ignore="contentDescription" />
59
60                 <!-- `android.support.design.widget.TextInputLayout` makes the `android:hint` float above the `EditText`. -->
61                 <android.support.design.widget.TextInputLayout
62                     android:layout_height="wrap_content"
63                     android:layout_width="match_parent"
64                     android:layout_marginStart="6dp" >
65
66                     <!-- `android:inputType="textUri"` disables spell check in the `EditText`. -->
67                     <android.support.design.widget.TextInputEditText
68                         android:id="@+id/domain_settings_name_edittext"
69                         android:layout_width="match_parent"
70                         android:layout_height="wrap_content"
71                         android:hint="@string/domain_name"
72                         android:inputType="textUri" />
73                 </android.support.design.widget.TextInputLayout>
74             </LinearLayout>
75
76             <TextView
77                 android:layout_height="wrap_content"
78                 android:layout_width="match_parent"
79                 android:text="@string/domain_name_instructions"
80                 android:textSize="12sp"
81                 android:layout_marginStart="43dp"
82                 android:layout_marginBottom="14dp" />
83         </LinearLayout>
84
85         <!-- JavaScript. -->
86         <LinearLayout
87             android:layout_height="wrap_content"
88             android:layout_width="match_parent"
89             android:orientation="horizontal" >
90
91             <ImageView
92                 android:id="@+id/domain_settings_javascript_imageview"
93                 android:layout_height="wrap_content"
94                 android:layout_width="wrap_content"
95                 android:layout_marginTop="1dp"
96                 android:layout_marginEnd="10dp"
97                 android:layout_gravity="center_vertical"
98                 tools:ignore="contentDescription" />
99
100             <Switch
101                 android:id="@+id/domain_settings_javascript_switch"
102                 android:layout_height="wrap_content"
103                 android:layout_width="match_parent"
104                 android:layout_marginStart="8dp"
105                 android:layout_marginTop="14dp"
106                 android:layout_marginBottom="14dp"
107                 android:text="@string/javascript_enabled"
108                 android:textColor="?android:textColorPrimary"
109                 android:textSize="18sp" />
110         </LinearLayout>
111
112         <!-- First-Party Cookies. -->
113         <LinearLayout
114             android:layout_height="wrap_content"
115             android:layout_width="match_parent"
116             android:orientation="horizontal" >
117
118             <ImageView
119                 android:id="@+id/domain_settings_first_party_cookies_imageview"
120                 android:layout_height="wrap_content"
121                 android:layout_width="wrap_content"
122                 android:layout_marginTop="1dp"
123                 android:layout_marginEnd="10dp"
124                 android:layout_gravity="center_vertical"
125                 tools:ignore="contentDescription" />
126
127             <Switch
128                 android:id="@+id/domain_settings_first_party_cookies_switch"
129                 android:layout_height="wrap_content"
130                 android:layout_width="match_parent"
131                 android:layout_marginStart="8dp"
132                 android:layout_marginTop="14dp"
133                 android:layout_marginBottom="14dp"
134                 android:text="@string/first_party_cookies_enabled"
135                 android:textColor="?android:textColorPrimary"
136                 android:textSize="18sp" />
137         </LinearLayout>
138
139         <!-- Third-Party Cookies. -->
140         <LinearLayout
141             android:id="@+id/domain_settings_third_party_cookies_linearlayout"
142             android:layout_height="wrap_content"
143             android:layout_width="match_parent"
144             android:orientation="horizontal" >
145
146             <ImageView
147                 android:id="@+id/domain_settings_third_party_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                 tools:ignore="contentDescription" />
154
155             <Switch
156                 android:id="@+id/domain_settings_third_party_cookies_switch"
157                 android:layout_height="wrap_content"
158                 android:layout_width="match_parent"
159                 android:layout_marginStart="8dp"
160                 android:layout_marginTop="14dp"
161                 android:layout_marginBottom="14dp"
162                 android:text="@string/third_party_cookies_enabled"
163                 android:textColor="?android:textColorPrimary"
164                 android:textSize="18sp" />
165         </LinearLayout>
166
167         <!-- DOM Storage. -->
168         <LinearLayout
169             android:layout_height="wrap_content"
170             android:layout_width="match_parent"
171             android:orientation="horizontal" >
172
173             <ImageView
174                 android:id="@+id/domain_settings_dom_storage_imageview"
175                 android:layout_height="wrap_content"
176                 android:layout_width="wrap_content"
177                 android:layout_marginTop="1dp"
178                 android:layout_marginEnd="10dp"
179                 android:layout_gravity="center_vertical"
180                 tools:ignore="contentDescription" />
181
182             <Switch
183                 android:id="@+id/domain_settings_dom_storage_switch"
184                 android:layout_height="wrap_content"
185                 android:layout_width="match_parent"
186                 android:layout_marginStart="8dp"
187                 android:layout_marginTop="14dp"
188                 android:layout_marginBottom="14dp"
189                 android:text="@string/dom_storage_enabled"
190                 android:textColor="?android:textColorPrimary"
191                 android:textSize="18sp" />
192         </LinearLayout>
193
194         <!-- Form Data. -->
195         <LinearLayout
196             android:layout_height="wrap_content"
197             android:layout_width="match_parent"
198             android:orientation="horizontal" >
199
200             <ImageView
201                 android:id="@+id/domain_settings_form_data_imageview"
202                 android:layout_height="wrap_content"
203                 android:layout_width="wrap_content"
204                 android:layout_marginTop="1dp"
205                 android:layout_marginEnd="10dp"
206                 android:layout_gravity="center_vertical"
207                 tools:ignore="contentDescription" />
208
209             <Switch
210                 android:id="@+id/domain_settings_form_data_switch"
211                 android:layout_height="wrap_content"
212                 android:layout_width="match_parent"
213                 android:layout_marginStart="8dp"
214                 android:layout_marginTop="14dp"
215                 android:layout_marginBottom="14dp"
216                 android:text="@string/form_data_enabled"
217                 android:textColor="?android:textColorPrimary"
218                 android:textSize="18sp" />
219         </LinearLayout>
220
221         <!-- EasyList. -->
222         <LinearLayout
223             android:layout_height="wrap_content"
224             android:layout_width="match_parent"
225             android:orientation="horizontal" >
226
227             <ImageView
228                 android:id="@+id/domain_settings_easylist_imageview"
229                 android:layout_height="wrap_content"
230                 android:layout_width="wrap_content"
231                 android:layout_marginTop="1dp"
232                 android:layout_marginEnd="10dp"
233                 android:layout_gravity="center_vertical"
234                 tools:ignore="contentDescription" />
235
236             <Switch
237                 android:id="@+id/domain_settings_easylist_switch"
238                 android:layout_height="wrap_content"
239                 android:layout_width="match_parent"
240                 android:layout_marginStart="8dp"
241                 android:layout_marginTop="14dp"
242                 android:layout_marginBottom="14dp"
243                 android:text="@string/easylist"
244                 android:textColor="?android:textColorPrimary"
245                 android:textSize="18sp" />
246         </LinearLayout>
247
248         <!-- EasyPrivacy. -->
249         <LinearLayout
250             android:layout_height="wrap_content"
251             android:layout_width="match_parent"
252             android:orientation="horizontal" >
253
254             <ImageView
255                 android:id="@+id/domain_settings_easyprivacy_imageview"
256                 android:layout_height="wrap_content"
257                 android:layout_width="wrap_content"
258                 android:layout_marginTop="1dp"
259                 android:layout_marginEnd="10dp"
260                 android:layout_gravity="center_vertical"
261                 tools:ignore="contentDescription" />
262
263             <Switch
264                 android:id="@+id/domain_settings_easyprivacy_switch"
265                 android:layout_height="wrap_content"
266                 android:layout_width="match_parent"
267                 android:layout_marginStart="8dp"
268                 android:layout_marginTop="14dp"
269                 android:layout_marginBottom="14dp"
270                 android:text="@string/easyprivacy"
271                 android:textColor="?android:textColorPrimary"
272                 android:textSize="18sp" />
273         </LinearLayout>
274
275         <!-- Fanboy's Annoyance List. -->
276         <LinearLayout
277             android:layout_height="wrap_content"
278             android:layout_width="match_parent"
279             android:orientation="horizontal" >
280
281             <ImageView
282                 android:id="@+id/domain_settings_fanboys_annoyance_list_imageview"
283                 android:layout_height="wrap_content"
284                 android:layout_width="wrap_content"
285                 android:layout_marginTop="1dp"
286                 android:layout_marginEnd="10dp"
287                 android:layout_gravity="center_vertical"
288                 tools:ignore="contentDescription" />
289
290             <Switch
291                 android:id="@+id/domain_settings_fanboys_annoyance_list_switch"
292                 android:layout_height="wrap_content"
293                 android:layout_width="match_parent"
294                 android:layout_marginStart="8dp"
295                 android:layout_marginTop="14dp"
296                 android:layout_marginBottom="14dp"
297                 android:text="@string/fanboys_annoyance_list"
298                 android:textColor="?android:textColorPrimary"
299                 android:textSize="18sp" />
300         </LinearLayout>
301
302         <!-- Fanboy's Social Blocking List. -->
303         <LinearLayout
304             android:layout_height="wrap_content"
305             android:layout_width="match_parent"
306             android:orientation="horizontal" >
307
308             <ImageView
309                 android:id="@+id/domain_settings_fanboys_social_blocking_list_imageview"
310                 android:layout_height="wrap_content"
311                 android:layout_width="wrap_content"
312                 android:layout_marginTop="1dp"
313                 android:layout_marginEnd="10dp"
314                 android:layout_gravity="center_vertical"
315                 tools:ignore="contentDescription" />
316
317             <Switch
318                 android:id="@+id/domain_settings_fanboys_social_blocking_list_switch"
319                 android:layout_height="wrap_content"
320                 android:layout_width="match_parent"
321                 android:layout_marginStart="8dp"
322                 android:layout_marginTop="14dp"
323                 android:layout_marginBottom="14dp"
324                 android:text="@string/fanboys_social_blocking_list"
325                 android:textColor="?android:textColorPrimary"
326                 android:textSize="18sp" />
327         </LinearLayout>
328
329         <!-- UltraPrivacy. -->
330         <LinearLayout
331             android:layout_height="wrap_content"
332             android:layout_width="match_parent"
333             android:orientation="horizontal" >
334
335             <ImageView
336                 android:id="@+id/domain_settings_ultraprivacy_imageview"
337                 android:layout_height="wrap_content"
338                 android:layout_width="wrap_content"
339                 android:layout_marginTop="1dp"
340                 android:layout_marginEnd="10dp"
341                 android:layout_gravity="center_vertical"
342                 tools:ignore="contentDescription" />
343
344             <Switch
345                 android:id="@+id/domain_settings_ultraprivacy_switch"
346                 android:layout_height="wrap_content"
347                 android:layout_width="match_parent"
348                 android:layout_marginStart="8dp"
349                 android:layout_marginTop="14dp"
350                 android:layout_marginBottom="14dp"
351                 android:text="@string/ultraprivacy"
352                 android:textColor="?android:textColorPrimary"
353                 android:textSize="18sp" />
354         </LinearLayout>
355
356         <!-- Block All Third Party Requests. -->
357         <LinearLayout
358             android:layout_height="wrap_content"
359             android:layout_width="match_parent"
360             android:orientation="horizontal" >
361
362             <ImageView
363                 android:id="@+id/domain_settings_block_all_third_party_requests_imageview"
364                 android:layout_height="wrap_content"
365                 android:layout_width="wrap_content"
366                 android:layout_marginTop="1dp"
367                 android:layout_marginEnd="10dp"
368                 android:layout_gravity="center_vertical"
369                 tools:ignore="contentDescription" />
370
371             <Switch
372                 android:id="@+id/domain_settings_block_all_third_party_requests_switch"
373                 android:layout_height="wrap_content"
374                 android:layout_width="match_parent"
375                 android:layout_marginStart="8dp"
376                 android:layout_marginTop="14dp"
377                 android:layout_marginBottom="14dp"
378                 android:text="@string/block_all_third_party_requests"
379                 android:textColor="?android:textColorPrimary"
380                 android:textSize="18sp" />
381         </LinearLayout>
382
383         <!-- User Agent. -->
384         <LinearLayout
385             android:layout_height="wrap_content"
386             android:layout_width="match_parent"
387             android:orientation="vertical"
388             android:layout_marginTop="14dp"
389             android:layout_marginBottom="14dp" >
390
391             <LinearLayout
392                 android:layout_height="wrap_content"
393                 android:layout_width="match_parent"
394                 android:orientation="horizontal" >
395
396                 <ImageView
397                     android:layout_height="wrap_content"
398                     android:layout_width="wrap_content"
399                     android:layout_marginTop="1dp"
400                     android:layout_marginEnd="10dp"
401                     android:layout_gravity="center_vertical"
402                     android:src="@drawable/user_agent_light"
403                     android:tint="?attr/domainSettingsIconTintColor"
404                     android:contentDescription="@string/user_agent" />
405
406                 <Spinner
407                     android:id="@+id/domain_settings_user_agent_spinner"
408                     android:layout_height="wrap_content"
409                     android:layout_width="match_parent" />
410             </LinearLayout>
411
412             <TextView
413                 android:id="@+id/domain_settings_user_agent_textview"
414                 android:layout_height="match_parent"
415                 android:layout_width="match_parent"
416                 android:layout_marginStart="45dp"
417                 android:layout_marginEnd="36dp"
418                 android:textSize="13sp" />
419
420             <!-- `android:autofillHints` only applies to API >= 26.  `tools:ignore="UnusedAttribute"` removes the lint warning. -->
421             <EditText
422                 android:id="@+id/domain_settings_custom_user_agent_edittext"
423                 android:layout_height="wrap_content"
424                 android:layout_width="match_parent"
425                 android:layout_marginStart="40dp"
426                 android:layout_marginEnd="60dp"
427                 android:inputType="textUri"
428                 android:hint="@string/custom_user_agent"
429                 android:autofillHints=""
430                 tools:ignore="UnusedAttribute" />
431         </LinearLayout>
432
433         <!-- Font Size. -->
434         <LinearLayout
435             android:layout_height="wrap_content"
436             android:layout_width="match_parent"
437             android:orientation="vertical"
438             android:layout_marginTop="14dp"
439             android:layout_marginBottom="14dp" >
440
441             <LinearLayout
442                 android:layout_height="wrap_content"
443                 android:layout_width="match_parent"
444                 android:orientation="horizontal" >
445
446                 <ImageView
447                     android:layout_height="wrap_content"
448                     android:layout_width="wrap_content"
449                     android:layout_marginTop="1dp"
450                     android:layout_marginEnd="10dp"
451                     android:layout_gravity="center_vertical"
452                     android:src="@drawable/font_size_light"
453                     android:tint="?attr/domainSettingsIconTintColor"
454                     android:contentDescription="@string/font_size" />
455
456                 <Spinner
457                     android:id="@+id/domain_settings_font_size_spinner"
458                     android:layout_height="wrap_content"
459                     android:layout_width="match_parent" />
460             </LinearLayout>
461
462             <TextView
463                 android:id="@+id/domain_settings_font_size_textview"
464                 android:layout_height="match_parent"
465                 android:layout_width="match_parent"
466                 android:layout_marginStart="45dp"
467                 android:layout_marginEnd="36dp"
468                 android:textSize="13sp" />
469
470         </LinearLayout>
471
472         <!-- Swipe to Refresh. -->
473         <LinearLayout
474             android:layout_height="wrap_content"
475             android:layout_width="match_parent"
476             android:orientation="vertical"
477             android:layout_marginTop="14dp"
478             android:layout_marginBottom="14dp" >
479
480             <LinearLayout
481                 android:layout_height="wrap_content"
482                 android:layout_width="match_parent"
483                 android:orientation="horizontal" >
484
485                 <ImageView
486                     android:id="@+id/domain_settings_swipe_to_refresh_imageview"
487                     android:layout_height="wrap_content"
488                     android:layout_width="wrap_content"
489                     android:layout_marginTop="1dp"
490                     android:layout_marginEnd="10dp"
491                     android:layout_gravity="center_vertical"
492                     android:contentDescription="@string/swipe_to_refresh_preference" />
493
494                 <Spinner
495                     android:id="@+id/domain_settings_swipe_to_refresh_spinner"
496                     android:layout_height="wrap_content"
497                     android:layout_width="match_parent" />
498             </LinearLayout>
499
500             <TextView
501                 android:id="@+id/domain_settings_swipe_to_refresh_textview"
502                 android:layout_height="match_parent"
503                 android:layout_width="match_parent"
504                 android:layout_marginStart="45dp"
505                 android:layout_marginEnd="36dp"
506                 android:textSize="13sp" />
507         </LinearLayout>
508
509         <!-- Night Mode. -->
510         <LinearLayout
511             android:layout_height="wrap_content"
512             android:layout_width="match_parent"
513             android:orientation="vertical"
514             android:layout_marginTop="14dp"
515             android:layout_marginBottom="14dp" >
516
517             <LinearLayout
518                 android:layout_height="wrap_content"
519                 android:layout_width="match_parent"
520                 android:orientation="horizontal" >
521
522                 <ImageView
523                     android:id="@+id/domain_settings_night_mode_imageview"
524                     android:layout_height="wrap_content"
525                     android:layout_width="wrap_content"
526                     android:layout_marginTop="1dp"
527                     android:layout_marginEnd="10dp"
528                     android:layout_gravity="center_vertical"
529                     android:contentDescription="@string/night_mode" />
530
531                 <Spinner
532                     android:id="@+id/domain_settings_night_mode_spinner"
533                     android:layout_height="wrap_content"
534                     android:layout_width="match_parent" />
535             </LinearLayout>
536
537             <TextView
538                 android:id="@+id/domain_settings_night_mode_textview"
539                 android:layout_height="match_parent"
540                 android:layout_width="match_parent"
541                 android:layout_marginStart="45dp"
542                 android:layout_marginEnd="36dp"
543                 android:textSize="13sp" />
544         </LinearLayout>
545
546         <!-- Display Images. -->
547         <LinearLayout
548             android:layout_height="wrap_content"
549             android:layout_width="match_parent"
550             android:orientation="vertical"
551             android:layout_marginTop="14dp"
552             android:layout_marginBottom="14dp" >
553
554             <LinearLayout
555                 android:layout_height="wrap_content"
556                 android:layout_width="match_parent"
557                 android:orientation="horizontal" >
558
559                 <ImageView
560                     android:id="@+id/domain_settings_display_webpage_images_imageview"
561                     android:layout_height="wrap_content"
562                     android:layout_width="wrap_content"
563                     android:layout_marginTop="1dp"
564                     android:layout_marginEnd="10dp"
565                     android:layout_gravity="center_vertical"
566                     android:contentDescription="@string/display_webpage_images" />
567
568                 <Spinner
569                     android:id="@+id/domain_settings_display_webpage_images_spinner"
570                     android:layout_height="wrap_content"
571                     android:layout_width="match_parent" />
572             </LinearLayout>
573
574             <TextView
575                 android:id="@+id/domain_settings_display_webpage_images_textview"
576                 android:layout_height="match_parent"
577                 android:layout_width="match_parent"
578                 android:layout_marginStart="45dp"
579                 android:layout_marginEnd="36dp"
580                 android:textSize="13sp" />
581         </LinearLayout>
582
583         <!-- Pinned SSL Certificate -->
584         <LinearLayout
585             android:layout_height="wrap_content"
586             android:layout_width="match_parent"
587             android:orientation="vertical"
588             android:layout_marginTop="18dp"
589             android:layout_marginBottom="32dp" >
590
591             <!-- Switch -->
592             <LinearLayout
593                 android:layout_height="wrap_content"
594                 android:layout_width="match_parent"
595                 android:orientation="horizontal" >
596
597                 <ImageView
598                     android:id="@+id/domain_settings_pinned_ssl_certificate_imageview"
599                     android:layout_height="wrap_content"
600                     android:layout_width="wrap_content"
601                     android:layout_marginTop="1dp"
602                     android:layout_marginEnd="10dp"
603                     android:layout_gravity="center_vertical"
604                     tools:ignore="contentDescription" />
605
606                 <Switch
607                     android:id="@+id/domain_settings_pinned_ssl_certificate_switch"
608                     android:layout_height="wrap_content"
609                     android:layout_width="match_parent"
610                     android:layout_marginStart="8dp"
611                     android:text="@string/pinned_ssl_certificate"
612                     android:textColor="?android:textColorPrimary"
613                     android:textSize="18sp" />
614             </LinearLayout>
615
616             <!-- Saved Certificate -->
617             <LinearLayout
618                 android:id="@+id/saved_ssl_certificate_linearlayout"
619                 android:layout_height="wrap_content"
620                 android:layout_width="match_parent"
621                 android:orientation="vertical"
622                 android:layout_marginTop="20dp"
623                 android:layout_marginBottom="12dp"
624                 android:layout_marginStart="10dp"
625                 android:layout_marginEnd="10dp" >
626
627                 <RadioButton
628                     android:id="@+id/saved_ssl_certificate_radiobutton"
629                     android:layout_height="wrap_content"
630                     android:layout_width="match_parent"
631                     android:text="@string/saved_ssl_certificate"
632                     android:textSize="17sp"
633                     android:textAllCaps="true"
634                     android:textStyle="bold" />
635
636                 <LinearLayout
637                     android:layout_height="wrap_content"
638                     android:layout_width="match_parent"
639                     android:layout_marginStart="32dp"
640                     android:orientation="vertical" >
641
642                     <!-- Saved Certificate Issued To. -->
643                     <TextView
644                         android:layout_height="wrap_content"
645                         android:layout_width="match_parent"
646                         android:text="@string/issued_to"
647                         android:textAllCaps="true"
648                         android:textStyle="bold"
649                         android:textColor="?attr/sslTitle" />
650
651                     <TextView
652                         android:id="@+id/saved_ssl_certificate_issued_to_cname"
653                         android:layout_height="wrap_content"
654                         android:layout_width="match_parent" />
655
656                     <TextView
657                         android:id="@+id/saved_ssl_certificate_issued_to_oname"
658                         android:layout_height="wrap_content"
659                         android:layout_width="match_parent" />
660
661                     <TextView
662                         android:id="@+id/saved_ssl_certificate_issued_to_uname"
663                         android:layout_height="wrap_content"
664                         android:layout_width="match_parent"/>
665
666                     <!-- Saved Certificate Issued By. -->
667                     <TextView
668                         android:layout_height="wrap_content"
669                         android:layout_width="match_parent"
670                         android:layout_marginTop="15dp"
671                         android:text="@string/issued_by"
672                         android:textAllCaps="true"
673                         android:textStyle="bold"
674                         android:textColor="?attr/sslTitle"/>
675
676                     <TextView
677                         android:id="@+id/saved_ssl_certificate_issued_by_cname"
678                         android:layout_height="wrap_content"
679                         android:layout_width="match_parent" />
680
681                     <TextView
682                         android:id="@+id/saved_ssl_certificate_issued_by_oname"
683                         android:layout_height="wrap_content"
684                         android:layout_width="match_parent" />
685
686                     <TextView
687                         android:id="@+id/saved_ssl_certificate_issued_by_uname"
688                         android:layout_height="wrap_content"
689                         android:layout_width="match_parent" />
690
691                     <!-- Saved Certificate Valid Dates. -->
692                     <TextView
693                         android:layout_height="wrap_content"
694                         android:layout_width="match_parent"
695                         android:layout_marginTop="15dp"
696                         android:text="@string/valid_dates"
697                         android:textAllCaps="true"
698                         android:textStyle="bold"
699                         android:textColor="?attr/sslTitle"/>
700
701                     <TextView
702                         android:id="@+id/saved_ssl_certificate_start_date"
703                         android:layout_height="wrap_content"
704                         android:layout_width="match_parent" />
705
706                     <TextView
707                         android:id="@+id/saved_ssl_certificate_end_date"
708                         android:layout_height="wrap_content"
709                         android:layout_width="match_parent" />
710                 </LinearLayout>
711             </LinearLayout>
712
713             <!-- Current Website Certificate -->
714             <LinearLayout
715                 android:id="@+id/current_website_certificate_linearlayout"
716                 android:layout_height="wrap_content"
717                 android:layout_width="match_parent"
718                 android:orientation="vertical"
719                 android:layout_marginTop="20dp"
720                 android:layout_marginBottom="8dp"
721                 android:layout_marginStart="10dp"
722                 android:layout_marginEnd="10dp" >
723
724                 <RadioButton
725                     android:id="@+id/current_website_certificate_radiobutton"
726                     android:layout_height="wrap_content"
727                     android:layout_width="match_parent"
728                     android:text="@string/current_website_ssl_certificate"
729                     android:textSize="17sp"
730                     android:textAllCaps="true"
731                     android:textStyle="bold" />
732
733                 <LinearLayout
734                     android:layout_height="wrap_content"
735                     android:layout_width="match_parent"
736                     android:layout_marginStart="32dp"
737                     android:orientation="vertical" >
738
739                     <!-- Current Website Certificate Issued To. -->
740                     <TextView
741                         android:layout_height="wrap_content"
742                         android:layout_width="match_parent"
743                         android:text="@string/issued_to"
744                         android:textAllCaps="true"
745                         android:textStyle="bold"
746                         android:textColor="?attr/sslTitle" />
747
748                     <TextView
749                         android:id="@+id/current_website_certificate_issued_to_cname"
750                         android:layout_height="wrap_content"
751                         android:layout_width="match_parent" />
752
753                     <TextView
754                         android:id="@+id/current_website_certificate_issued_to_oname"
755                         android:layout_height="wrap_content"
756                         android:layout_width="match_parent" />
757
758                     <TextView
759                         android:id="@+id/current_website_certificate_issued_to_uname"
760                         android:layout_height="wrap_content"
761                         android:layout_width="match_parent" />
762
763                     <!-- Current Website Certificate Issued By. -->
764                     <TextView
765                         android:layout_height="wrap_content"
766                         android:layout_width="match_parent"
767                         android:layout_marginTop="15dp"
768                         android:text="@string/issued_by"
769                         android:textAllCaps="true"
770                         android:textStyle="bold"
771                         android:textColor="?attr/sslTitle" />
772
773                     <TextView
774                         android:id="@+id/current_website_certificate_issued_by_cname"
775                         android:layout_height="wrap_content"
776                         android:layout_width="match_parent" />
777
778                     <TextView
779                         android:id="@+id/current_website_certificate_issued_by_oname"
780                         android:layout_height="wrap_content"
781                         android:layout_width="match_parent" />
782
783                     <TextView
784                         android:id="@+id/current_website_certificate_issued_by_uname"
785                         android:layout_height="wrap_content"
786                         android:layout_width="match_parent" />
787
788                     <!-- Current Website Certificate Valid Dates. -->
789                     <TextView
790                         android:layout_height="wrap_content"
791                         android:layout_width="match_parent"
792                         android:layout_marginTop="15dp"
793                         android:text="@string/valid_dates"
794                         android:textAllCaps="true"
795                         android:textStyle="bold"
796                         android:textColor="?attr/sslTitle" />
797
798                     <TextView
799                         android:id="@+id/current_website_certificate_start_date"
800                         android:layout_height="wrap_content"
801                         android:layout_width="match_parent" />
802
803                     <TextView
804                         android:id="@+id/current_website_certificate_end_date"
805                         android:layout_height="wrap_content"
806                         android:layout_width="match_parent" />
807                 </LinearLayout>
808             </LinearLayout>
809
810             <!-- Load An Encrypted Website Instructions. -->
811             <TextView
812                 android:id="@+id/no_current_website_certificate"
813                 android:layout_height="wrap_content"
814                 android:layout_width="match_parent"
815                 android:layout_marginTop="10dp"
816                 android:layout_marginStart="40dp"
817                 android:layout_marginEnd="40dp"
818                 android:gravity="center_horizontal"
819                 android:text="@string/load_an_encrypted_website" />
820         </LinearLayout>
821     </LinearLayout>
822 </ScrollView>