Update the privacy policy. https://redmine.stoutner.com/issues/244
[PrivacyBrowser.git] / app / src / main / res / layout / about_tab_version.xml
1 <?xml version="1.0" encoding="utf-8"?>
2
3 <!--
4   Copyright © 2016-2017 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 <!-- The `ScrollView` allows the `LinearLayout` to scroll if it exceeds the height of the page. -->
22 <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:background="?attr/aboutBackground" >
28
29     <LinearLayout
30         android:layout_height="wrap_content"
31         android:layout_width="match_parent"
32         android:orientation="vertical"
33         android:padding="16dp" >
34
35         <!-- The `RelativeLayout` contains the header. -->
36         <RelativeLayout
37             android:layout_width="match_parent"
38             android:layout_height="wrap_content" >
39
40             <!-- `tools:ignore="ContentDescription"` suppresses the lint warning about supplying a content description for the `ImageView`,
41                  which isn't needed in this case because the `ImageView` is only decorative. -->
42             <ImageView
43                 android:id="@+id/about_version_icon"
44                 android:layout_height="wrap_content"
45                 android:layout_width="wrap_content"
46                 android:src="@mipmap/privacy_browser"
47                 android:paddingTop="10dp"
48                 tools:ignore="ContentDescription" />
49
50             <TextView
51                 android:id="@+id/about_version_privacy_browser_textview"
52                 android:layout_height="wrap_content"
53                 android:layout_width="wrap_content"
54                 android:text="@string/privacy_browser"
55                 android:textStyle="bold"
56                 android:textSize="22sp"
57                 android:textColor="?attr/aboutTitle"
58                 android:layout_toEndOf="@id/about_version_icon" />
59
60             <TextView
61                 android:id="@+id/about_version_number"
62                 android:layout_height="wrap_content"
63                 android:layout_width="wrap_content"
64                 android:textColor="?attr/aboutText"
65                 android:layout_below="@id/about_version_privacy_browser_textview"
66                 android:layout_toEndOf="@id/about_version_icon" />
67         </RelativeLayout>
68
69         <!-- The purpose of this `LinearLayout` is to provide padding on the start of the `TextViews` to make them line up with `about_version_icon`.
70              Although we don't need it, we have to include `android:paddingEnd` to make lint happy. -->
71         <LinearLayout
72             android:layout_height="wrap_content"
73             android:layout_width="match_parent"
74             android:orientation="vertical"
75             android:paddingTop="16dp"
76             android:paddingStart="4dp"
77             android:paddingEnd="0dp" >
78
79             <!-- Hardware. -->
80             <TextView
81                 android:layout_height="wrap_content"
82                 android:layout_width="wrap_content"
83                 android:text="@string/hardware"
84                 android:textStyle="bold"
85                 android:textSize="18sp"
86                 android:textColor="?attr/aboutTitle" />
87
88             <TextView
89                 android:id="@+id/about_version_brand"
90                 android:layout_height="wrap_content"
91                 android:layout_width="wrap_content" />
92
93             <TextView
94                 android:id="@+id/about_version_manufacturer"
95                 android:layout_height="wrap_content"
96                 android:layout_width="wrap_content" />
97
98             <TextView
99                 android:id="@+id/about_version_model"
100                 android:layout_height="wrap_content"
101                 android:layout_width="wrap_content" />
102
103             <TextView
104                 android:id="@+id/about_version_device"
105                 android:layout_height="wrap_content"
106                 android:layout_width="wrap_content" />
107
108             <TextView
109                 android:id="@+id/about_version_bootloader"
110                 android:layout_height="wrap_content"
111                 android:layout_width="wrap_content" />
112
113             <TextView
114                 android:id="@+id/about_version_radio"
115                 android:layout_height="wrap_content"
116                 android:layout_width="wrap_content" />
117
118             <!-- Software. -->
119             <TextView
120                 android:layout_height="wrap_content"
121                 android:layout_width="wrap_content"
122                 android:text="@string/software"
123                 android:textStyle="bold"
124                 android:textSize="18sp"
125                 android:textColor="?attr/aboutTitle"
126                 android:paddingTop="12dp" />
127
128             <TextView
129                 android:id="@+id/about_version_android"
130                 android:layout_height="wrap_content"
131                 android:layout_width="wrap_content" />
132
133             <TextView
134                 android:id="@+id/about_version_securitypatch"
135                 android:layout_height="wrap_content"
136                 android:layout_width="wrap_content" />
137
138             <TextView
139                 android:id="@+id/about_version_build"
140                 android:layout_height="wrap_content"
141                 android:layout_width="wrap_content" />
142
143             <TextView
144                 android:id="@+id/about_version_webkit"
145                 android:layout_height="wrap_content"
146                 android:layout_width="wrap_content" />
147
148             <TextView
149                 android:id="@+id/about_version_chrome"
150                 android:layout_height="wrap_content"
151                 android:layout_width="wrap_content" />
152
153             <TextView
154                 android:id="@+id/about_version_easylist"
155                 android:layout_height="wrap_content"
156                 android:layout_width="wrap_content" />
157
158             <TextView
159                 android:id="@+id/about_version_orbot"
160                 android:layout_height="wrap_content"
161                 android:layout_width="wrap_content" />
162
163             <!-- Package Signature. -->
164             <TextView
165                 android:layout_height="wrap_content"
166                 android:layout_width="wrap_content"
167                 android:text="@string/package_signature"
168                 android:textStyle="bold"
169                 android:textSize="18sp"
170                 android:textColor="?attr/aboutTitle"
171                 android:paddingTop="12dp" />
172
173             <TextView
174                 android:id="@+id/about_version_certificate_issuer_dn"
175                 android:layout_height="wrap_content"
176                 android:layout_width="wrap_content" />
177
178             <TextView
179                 android:id="@+id/about_version_certificate_subject_dn"
180                 android:layout_height="wrap_content"
181                 android:layout_width="wrap_content" />
182
183             <TextView
184                 android:id="@+id/about_version_certificate_start_date"
185                 android:layout_height="wrap_content"
186                 android:layout_width="wrap_content" />
187
188             <TextView
189                 android:id="@+id/about_version_certificate_end_date"
190                 android:layout_height="wrap_content"
191                 android:layout_width="wrap_content" />
192
193             <TextView
194                 android:id="@+id/about_version_certificate_version"
195                 android:layout_height="wrap_content"
196                 android:layout_width="wrap_content" />
197
198             <TextView
199                 android:id="@+id/about_version_certificate_serial_number"
200                 android:layout_height="wrap_content"
201                 android:layout_width="wrap_content" />
202
203             <TextView
204                 android:id="@+id/about_version_certificate_signature_algorithm"
205                 android:layout_height="wrap_content"
206                 android:layout_width="wrap_content" />
207         </LinearLayout>
208     </LinearLayout>
209 </ScrollView>