]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/blob - app/src/main/res/layout/domain_settings_fragment.xml
Add swipe to refresh to domain and on-the-fly settings. https://redmine.stoutner...
[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/fanboy_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/fanboy_social_blocking_list"
325                 android:textColor="?android:textColorPrimary"
326                 android:textSize="18sp" />
327         </LinearLayout>
328
329         <!-- User Agent. -->
330         <LinearLayout
331             android:layout_height="wrap_content"
332             android:layout_width="match_parent"
333             android:orientation="vertical"
334             android:layout_marginTop="14dp"
335             android:layout_marginBottom="14dp" >
336
337             <LinearLayout
338                 android:layout_height="wrap_content"
339                 android:layout_width="match_parent"
340                 android:orientation="horizontal" >
341
342                 <ImageView
343                     android:layout_height="wrap_content"
344                     android:layout_width="wrap_content"
345                     android:layout_marginTop="1dp"
346                     android:layout_marginEnd="10dp"
347                     android:layout_gravity="center_vertical"
348                     android:src="@drawable/user_agent_light"
349                     android:tint="?attr/domainSettingsIconTintColor"
350                     android:contentDescription="@string/user_agent" />
351
352                 <Spinner
353                     android:id="@+id/domain_settings_user_agent_spinner"
354                     android:layout_height="wrap_content"
355                     android:layout_width="match_parent"
356                     android:labelFor="@+id/domain_settings_custom_user_agent_edittext" />
357             </LinearLayout>
358
359             <TextView
360                 android:id="@+id/domain_settings_user_agent_textview"
361                 android:layout_height="match_parent"
362                 android:layout_width="match_parent"
363                 android:layout_marginStart="45dp"
364                 android:layout_marginEnd="36dp"
365                 android:textSize="13sp" />
366
367             <EditText
368                 android:id="@id/domain_settings_custom_user_agent_edittext"
369                 android:layout_height="wrap_content"
370                 android:layout_width="match_parent"
371                 android:layout_marginStart="40dp"
372                 android:layout_marginEnd="60dp"
373                 android:inputType="textUri"
374                 android:hint="@string/custom_user_agent"/>
375         </LinearLayout>
376
377         <!-- Font Size. -->
378         <LinearLayout
379             android:layout_height="wrap_content"
380             android:layout_width="match_parent"
381             android:orientation="vertical"
382             android:layout_marginTop="14dp"
383             android:layout_marginBottom="14dp" >
384
385             <LinearLayout
386                 android:layout_height="wrap_content"
387                 android:layout_width="match_parent"
388                 android:orientation="horizontal" >
389
390                 <ImageView
391                     android:layout_height="wrap_content"
392                     android:layout_width="wrap_content"
393                     android:layout_marginTop="1dp"
394                     android:layout_marginEnd="10dp"
395                     android:layout_gravity="center_vertical"
396                     android:src="@drawable/font_size_light"
397                     android:tint="?attr/domainSettingsIconTintColor"
398                     android:contentDescription="@string/font_size" />
399
400                 <Spinner
401                     android:id="@+id/domain_settings_font_size_spinner"
402                     android:layout_height="wrap_content"
403                     android:layout_width="match_parent" />
404             </LinearLayout>
405
406             <TextView
407                 android:id="@+id/domain_settings_font_size_textview"
408                 android:layout_height="match_parent"
409                 android:layout_width="match_parent"
410                 android:layout_marginStart="45dp"
411                 android:layout_marginEnd="36dp"
412                 android:textSize="13sp" />
413
414         </LinearLayout>
415
416         <!-- Swipe to Refresh. -->
417         <LinearLayout
418             android:layout_height="wrap_content"
419             android:layout_width="match_parent"
420             android:orientation="vertical"
421             android:layout_marginTop="14dp"
422             android:layout_marginBottom="14dp" >
423
424             <LinearLayout
425                 android:layout_height="wrap_content"
426                 android:layout_width="match_parent"
427                 android:orientation="horizontal" >
428
429                 <ImageView
430                     android:id="@+id/domain_settings_swipe_to_refresh_imageview"
431                     android:layout_height="wrap_content"
432                     android:layout_width="wrap_content"
433                     android:layout_marginTop="1dp"
434                     android:layout_marginEnd="10dp"
435                     android:layout_gravity="center_vertical"
436                     android:contentDescription="@string/swipe_to_refresh_preference" />
437
438                 <Spinner
439                     android:id="@+id/domain_settings_swipe_to_refresh_spinner"
440                     android:layout_height="wrap_content"
441                     android:layout_width="match_parent" />
442             </LinearLayout>
443
444             <TextView
445                 android:id="@+id/domain_settings_swipe_to_refresh_textview"
446                 android:layout_height="match_parent"
447                 android:layout_width="match_parent"
448                 android:layout_marginStart="45dp"
449                 android:layout_marginEnd="36dp"
450                 android:textSize="13sp" />
451         </LinearLayout>
452
453         <!-- Night Mode. -->
454         <LinearLayout
455             android:layout_height="wrap_content"
456             android:layout_width="match_parent"
457             android:orientation="vertical"
458             android:layout_marginTop="14dp"
459             android:layout_marginBottom="14dp" >
460
461             <LinearLayout
462                 android:layout_height="wrap_content"
463                 android:layout_width="match_parent"
464                 android:orientation="horizontal" >
465
466                 <ImageView
467                     android:id="@+id/domain_settings_night_mode_imageview"
468                     android:layout_height="wrap_content"
469                     android:layout_width="wrap_content"
470                     android:layout_marginTop="1dp"
471                     android:layout_marginEnd="10dp"
472                     android:layout_gravity="center_vertical"
473                     android:contentDescription="@string/night_mode" />
474
475                 <Spinner
476                     android:id="@+id/domain_settings_night_mode_spinner"
477                     android:layout_height="wrap_content"
478                     android:layout_width="match_parent" />
479             </LinearLayout>
480
481             <TextView
482                 android:id="@+id/domain_settings_night_mode_textview"
483                 android:layout_height="match_parent"
484                 android:layout_width="match_parent"
485                 android:layout_marginStart="45dp"
486                 android:layout_marginEnd="36dp"
487                 android:textSize="13sp" />
488         </LinearLayout>
489
490         <!-- Display Images. -->
491         <LinearLayout
492             android:layout_height="wrap_content"
493             android:layout_width="match_parent"
494             android:orientation="vertical"
495             android:layout_marginTop="14dp"
496             android:layout_marginBottom="14dp" >
497
498             <LinearLayout
499                 android:layout_height="wrap_content"
500                 android:layout_width="match_parent"
501                 android:orientation="horizontal" >
502
503                 <ImageView
504                     android:id="@+id/domain_settings_display_webpage_images_imageview"
505                     android:layout_height="wrap_content"
506                     android:layout_width="wrap_content"
507                     android:layout_marginTop="1dp"
508                     android:layout_marginEnd="10dp"
509                     android:layout_gravity="center_vertical"
510                     android:contentDescription="@string/display_webpage_images" />
511
512                 <Spinner
513                     android:id="@+id/domain_settings_display_webpage_images_spinner"
514                     android:layout_height="wrap_content"
515                     android:layout_width="match_parent" />
516             </LinearLayout>
517
518             <TextView
519                 android:id="@+id/domain_settings_display_webpage_images_textview"
520                 android:layout_height="match_parent"
521                 android:layout_width="match_parent"
522                 android:layout_marginStart="45dp"
523                 android:layout_marginEnd="36dp"
524                 android:textSize="13sp" />
525         </LinearLayout>
526
527         <!-- Pinned SSL Certificate -->
528         <LinearLayout
529             android:layout_height="wrap_content"
530             android:layout_width="match_parent"
531             android:orientation="vertical"
532             android:layout_marginTop="18dp"
533             android:layout_marginBottom="32dp" >
534
535             <!-- Switch -->
536             <LinearLayout
537                 android:layout_height="wrap_content"
538                 android:layout_width="match_parent"
539                 android:orientation="horizontal" >
540
541                 <ImageView
542                     android:id="@+id/domain_settings_pinned_ssl_certificate_imageview"
543                     android:layout_height="wrap_content"
544                     android:layout_width="wrap_content"
545                     android:layout_marginTop="1dp"
546                     android:layout_marginEnd="10dp"
547                     android:layout_gravity="center_vertical"
548                     tools:ignore="contentDescription" />
549
550                 <Switch
551                     android:id="@+id/domain_settings_pinned_ssl_certificate_switch"
552                     android:layout_height="wrap_content"
553                     android:layout_width="match_parent"
554                     android:layout_marginStart="8dp"
555                     android:text="@string/pinned_ssl_certificate"
556                     android:textColor="?android:textColorPrimary"
557                     android:textSize="18sp" />
558             </LinearLayout>
559
560             <!-- Saved Certificate -->
561             <LinearLayout
562                 android:id="@+id/saved_ssl_certificate_linearlayout"
563                 android:layout_height="wrap_content"
564                 android:layout_width="match_parent"
565                 android:orientation="vertical"
566                 android:layout_marginTop="20dp"
567                 android:layout_marginBottom="12dp"
568                 android:layout_marginStart="10dp"
569                 android:layout_marginEnd="10dp" >
570
571                 <RadioButton
572                     android:id="@+id/saved_ssl_certificate_radiobutton"
573                     android:layout_height="wrap_content"
574                     android:layout_width="match_parent"
575                     android:text="@string/saved_ssl_certificate"
576                     android:textSize="17sp"
577                     android:textAllCaps="true"
578                     android:textStyle="bold" />
579
580                 <LinearLayout
581                     android:layout_height="wrap_content"
582                     android:layout_width="match_parent"
583                     android:layout_marginStart="32dp"
584                     android:orientation="vertical" >
585
586                     <!-- Saved Certificate Issued To. -->
587                     <TextView
588                         android:layout_height="wrap_content"
589                         android:layout_width="match_parent"
590                         android:text="@string/issued_to"
591                         android:textAllCaps="true"
592                         android:textStyle="bold"
593                         android:textColor="?attr/sslTitle" />
594
595                     <TextView
596                         android:id="@+id/saved_ssl_certificate_issued_to_cname"
597                         android:layout_height="wrap_content"
598                         android:layout_width="match_parent" />
599
600                     <TextView
601                         android:id="@+id/saved_ssl_certificate_issued_to_oname"
602                         android:layout_height="wrap_content"
603                         android:layout_width="match_parent" />
604
605                     <TextView
606                         android:id="@+id/saved_ssl_certificate_issued_to_uname"
607                         android:layout_height="wrap_content"
608                         android:layout_width="match_parent"/>
609
610                     <!-- Saved Certificate Issued By. -->
611                     <TextView
612                         android:layout_height="wrap_content"
613                         android:layout_width="match_parent"
614                         android:layout_marginTop="15dp"
615                         android:text="@string/issued_by"
616                         android:textAllCaps="true"
617                         android:textStyle="bold"
618                         android:textColor="?attr/sslTitle"/>
619
620                     <TextView
621                         android:id="@+id/saved_ssl_certificate_issued_by_cname"
622
623                         android:layout_height="wrap_content"
624                         android:layout_width="match_parent" />
625
626                     <TextView
627                         android:id="@+id/saved_ssl_certificate_issued_by_oname"
628                         android:layout_height="wrap_content"
629                         android:layout_width="match_parent" />
630
631                     <TextView
632                         android:id="@+id/saved_ssl_certificate_issued_by_uname"
633                         android:layout_height="wrap_content"
634                         android:layout_width="match_parent" />
635
636                     <!-- Saved Certificate Valid Dates. -->
637                     <TextView
638                         android:layout_height="wrap_content"
639                         android:layout_width="match_parent"
640                         android:layout_marginTop="15dp"
641                         android:text="@string/valid_dates"
642                         android:textAllCaps="true"
643                         android:textStyle="bold"
644                         android:textColor="?attr/sslTitle"/>
645
646                     <TextView
647                         android:id="@+id/saved_ssl_certificate_start_date"
648                         android:layout_height="wrap_content"
649                         android:layout_width="match_parent" />
650
651                     <TextView
652                         android:id="@+id/saved_ssl_certificate_end_date"
653                         android:layout_height="wrap_content"
654                         android:layout_width="match_parent" />
655                 </LinearLayout>
656             </LinearLayout>
657
658             <!-- Current Website Certificate -->
659             <LinearLayout
660                 android:id="@+id/current_website_certificate_linearlayout"
661                 android:layout_height="wrap_content"
662                 android:layout_width="match_parent"
663                 android:orientation="vertical"
664                 android:layout_marginTop="20dp"
665                 android:layout_marginBottom="8dp"
666                 android:layout_marginStart="10dp"
667                 android:layout_marginEnd="10dp" >
668
669                 <RadioButton
670                     android:id="@+id/current_website_certificate_radiobutton"
671                     android:layout_height="wrap_content"
672                     android:layout_width="match_parent"
673                     android:text="@string/current_website_ssl_certificate"
674                     android:textSize="17sp"
675                     android:textAllCaps="true"
676                     android:textStyle="bold" />
677
678                 <LinearLayout
679                     android:layout_height="wrap_content"
680                     android:layout_width="match_parent"
681                     android:layout_marginStart="32dp"
682                     android:orientation="vertical" >
683
684                     <!-- Current Website Certificate Issued To. -->
685                     <TextView
686                         android:layout_height="wrap_content"
687                         android:layout_width="match_parent"
688                         android:text="@string/issued_to"
689                         android:textAllCaps="true"
690                         android:textStyle="bold"
691                         android:textColor="?attr/sslTitle" />
692
693                     <TextView
694                         android:id="@+id/current_website_certificate_issued_to_cname"
695                         android:layout_height="wrap_content"
696                         android:layout_width="match_parent" />
697
698                     <TextView
699                         android:id="@+id/current_website_certificate_issued_to_oname"
700                         android:layout_height="wrap_content"
701                         android:layout_width="match_parent" />
702
703                     <TextView
704                         android:id="@+id/current_website_certificate_issued_to_uname"
705                         android:layout_height="wrap_content"
706                         android:layout_width="match_parent" />
707
708                     <!-- Current Website Certificate Issued By. -->
709                     <TextView
710                         android:layout_height="wrap_content"
711                         android:layout_width="match_parent"
712                         android:layout_marginTop="15dp"
713                         android:text="@string/issued_by"
714                         android:textAllCaps="true"
715                         android:textStyle="bold"
716                         android:textColor="?attr/sslTitle" />
717
718                     <TextView
719                         android:id="@+id/current_website_certificate_issued_by_cname"
720                         android:layout_height="wrap_content"
721                         android:layout_width="match_parent" />
722
723                     <TextView
724                         android:id="@+id/current_website_certificate_issued_by_oname"
725                         android:layout_height="wrap_content"
726                         android:layout_width="match_parent" />
727
728                     <TextView
729                         android:id="@+id/current_website_certificate_issued_by_uname"
730                         android:layout_height="wrap_content"
731                         android:layout_width="match_parent" />
732
733                     <!-- Current Website Certificate Valid Dates. -->
734                     <TextView
735                         android:layout_height="wrap_content"
736                         android:layout_width="match_parent"
737                         android:layout_marginTop="15dp"
738                         android:text="@string/valid_dates"
739                         android:textAllCaps="true"
740                         android:textStyle="bold"
741                         android:textColor="?attr/sslTitle" />
742
743                     <TextView
744                         android:id="@+id/current_website_certificate_start_date"
745                         android:layout_height="wrap_content"
746                         android:layout_width="match_parent" />
747
748                     <TextView
749                         android:id="@+id/current_website_certificate_end_date"
750                         android:layout_height="wrap_content"
751                         android:layout_width="match_parent" />
752                 </LinearLayout>
753             </LinearLayout>
754
755             <!-- Load An Encrypted Website Instructions. -->
756             <TextView
757                 android:id="@+id/no_current_website_certificate"
758                 android:layout_height="wrap_content"
759                 android:layout_width="match_parent"
760                 android:layout_marginTop="10dp"
761                 android:layout_marginStart="40dp"
762                 android:layout_marginEnd="40dp"
763                 android:gravity="center_horizontal"
764                 android:text="@string/load_an_encrypted_website" />
765         </LinearLayout>
766     </LinearLayout>
767 </ScrollView>