1 <?xml version="1.0" encoding="utf-8"?>
4 Copyright 2016 Soren Stoutner <soren@stoutner.com>.
6 This file is part of Privacy Browser <https://www.stoutner.com/privacy-browser>.
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.
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.
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/>. -->
21 <!-- The ScrollView allows the LinearLayout to scroll if it exceeds the height of the page. -->
23 android:id="@+id/about_version_scrollview"
24 xmlns:android="http://schemas.android.com/apk/res/android"
25 android:layout_height="wrap_content"
26 android:layout_width="match_parent" >
29 android:id="@+id/about_version_linearlayout"
30 android:layout_height="wrap_content"
31 android:layout_width="match_parent"
32 android:orientation="vertical"
33 android:padding="16dp" >
35 <!-- The RelativeLayout contains the header. -->
37 android:id="@+id/about_version_relativelayout"
38 android:layout_width="match_parent"
39 android:layout_height="wrap_content"
40 xmlns:tools="http://schemas.android.com/tools" >
42 <!--tools:ignore="ContentDescription" suppresses the lint warning about supplying a content description for the ImageView,
43 which isn't needed in this case because the ImageView is only decorative. -->
45 android:id="@+id/about_version_icon"
46 android:layout_width="wrap_content"
47 android:layout_height="wrap_content"
48 android:src="@mipmap/privacy_browser"
49 android:paddingTop="10dp"
50 tools:ignore="ContentDescription" />
52 <!-- We need to include android:layout_toRightOf until API>=17. -->
54 android:id="@+id/about_version_privacy_browser_textview"
55 android:layout_width="wrap_content"
56 android:layout_height="wrap_content"
57 android:text="@string/privacy_browser"
58 android:textStyle="bold"
59 android:textSize="22sp"
60 android:textColor="@color/black"
61 android:layout_toEndOf="@id/about_version_icon"
62 android:layout_toRightOf="@id/about_version_icon" />
64 <!-- We need to include android:layout_toRightOf until API>=17. -->
66 android:id="@+id/about_version_number_text"
67 android:layout_width="wrap_content"
68 android:layout_height="wrap_content"
69 android:textColor="@color/blue"
70 android:layout_below="@id/about_version_privacy_browser_textview"
71 android:layout_toEndOf="@id/about_version_icon"
72 android:layout_toRightOf="@id/about_version_icon" />
75 <!-- The purpose of this LinearLayout is to provide padding on the start of the TextViews to make them line up with about_version_icon.
76 We have to use android:paddingLeft in addition to android:paddingStart until API>=17.
77 Although we don't need them, we have to include android:paddingEnd and android:paddingRight to make lint happy. -->
79 android:layout_width="match_parent"
80 android:layout_height="wrap_content"
81 android:orientation="vertical"
82 android:paddingTop="16dp"
83 android:paddingStart="4dp"
84 android:paddingEnd="0dp"
85 android:paddingLeft="4dp"
86 android:paddingRight="4dp" >
90 android:id="@+id/about_version_hardware"
91 android:layout_width="wrap_content"
92 android:layout_height="wrap_content"
93 android:text="@string/hardware"
94 android:textStyle="bold"
95 android:textSize="18sp"
96 android:textColor="@color/dark_blue" />
100 android:layout_width="wrap_content"
101 android:layout_height="wrap_content"
102 android:orientation="horizontal" >
105 android:id="@+id/about_version_brand_title"
106 android:layout_width="wrap_content"
107 android:layout_height="wrap_content"
108 android:text="@string/brand" />
111 android:id="@+id/about_version_brand_text"
112 android:layout_width="wrap_content"
113 android:layout_height="wrap_content"
114 android:textColor="@color/blue" />
117 <!-- Manufacturer. -->
119 android:layout_width="wrap_content"
120 android:layout_height="wrap_content"
121 android:orientation="horizontal" >
124 android:id="@+id/about_version_manufacturer_title"
125 android:layout_width="wrap_content"
126 android:layout_height="wrap_content"
127 android:text="@string/manufacturer" />
130 android:id="@+id/about_version_manufacturer_text"
131 android:layout_width="wrap_content"
132 android:layout_height="wrap_content"
133 android:textColor="@color/blue" />
138 android:layout_width="wrap_content"
139 android:layout_height="wrap_content"
140 android:orientation="horizontal" >
143 android:id="@+id/about_version_model_title"
144 android:layout_width="wrap_content"
145 android:layout_height="wrap_content"
146 android:text="@string/model" />
149 android:id="@+id/about_version_model_text"
150 android:layout_width="wrap_content"
151 android:layout_height="wrap_content"
152 android:textColor="@color/blue" />
157 android:layout_width="wrap_content"
158 android:layout_height="wrap_content"
159 android:orientation="horizontal" >
162 android:id="@+id/about_version_device_title"
163 android:layout_width="wrap_content"
164 android:layout_height="wrap_content"
165 android:text="@string/device" />
168 android:id="@+id/about_version_device_text"
169 android:layout_width="wrap_content"
170 android:layout_height="wrap_content"
171 android:textColor="@color/blue" />
176 android:layout_width="wrap_content"
177 android:layout_height="wrap_content"
178 android:orientation="horizontal" >
181 android:id="@+id/about_version_bootloader_title"
182 android:layout_width="wrap_content"
183 android:layout_height="wrap_content"
184 android:text="@string/bootloader" />
187 android:id="@+id/about_version_bootloader_text"
188 android:layout_width="wrap_content"
189 android:layout_height="wrap_content"
190 android:textColor="@color/blue" />
195 android:layout_width="wrap_content"
196 android:layout_height="wrap_content"
197 android:orientation="horizontal" >
200 android:id="@+id/about_version_radio_title"
201 android:layout_width="wrap_content"
202 android:layout_height="wrap_content"
203 android:text="@string/radio" />
206 android:id="@+id/about_version_radio_text"
207 android:layout_width="wrap_content"
208 android:layout_height="wrap_content"
209 android:textColor="@color/blue" />
214 android:id="@+id/about_version_software"
215 android:layout_width="wrap_content"
216 android:layout_height="wrap_content"
217 android:text="@string/software"
218 android:textStyle="bold"
219 android:textSize="18sp"
220 android:textColor="@color/dark_blue"
221 android:paddingTop="12dp" />
225 android:layout_width="wrap_content"
226 android:layout_height="wrap_content"
227 android:orientation="horizontal" >
230 android:id="@+id/about_version_android_title"
231 android:layout_width="wrap_content"
232 android:layout_height="wrap_content"
233 android:text="@string/android" />
236 android:id="@+id/about_version_android_text"
237 android:layout_width="wrap_content"
238 android:layout_height="wrap_content"
239 android:textColor="@color/blue" />
244 android:layout_width="wrap_content"
245 android:layout_height="wrap_content"
246 android:orientation="horizontal" >
249 android:id="@+id/about_version_build_title"
250 android:layout_width="wrap_content"
251 android:layout_height="wrap_content"
252 android:text="@string/build" />
255 android:id="@+id/about_version_build_text"
256 android:layout_width="wrap_content"
257 android:layout_height="wrap_content"
258 android:textColor="@color/blue" />
261 <!-- Security Patch. -->
263 android:layout_width="wrap_content"
264 android:layout_height="wrap_content"
265 android:orientation="horizontal" >
268 android:id="@+id/about_version_securitypatch_title"
269 android:layout_width="wrap_content"
270 android:layout_height="wrap_content"
271 android:text="@string/security_patch" />
274 android:id="@+id/about_version_securitypatch_text"
275 android:layout_width="wrap_content"
276 android:layout_height="wrap_content"
277 android:textColor="@color/blue" />
282 android:layout_width="wrap_content"
283 android:layout_height="wrap_content"
284 android:orientation="horizontal" >
287 android:id="@+id/about_version_webkit_title"
288 android:layout_width="wrap_content"
289 android:layout_height="wrap_content"
290 android:text="@string/webkit" />
293 android:id="@+id/about_version_webkit_text"
294 android:layout_width="wrap_content"
295 android:layout_height="wrap_content"
296 android:textColor="@color/blue" />
301 android:layout_width="wrap_content"
302 android:layout_height="wrap_content"
303 android:orientation="horizontal" >
306 android:id="@+id/about_version_chrome_title"
307 android:layout_width="wrap_content"
308 android:layout_height="wrap_content"
309 android:text="@string/chrome" />
312 android:id="@+id/about_version_chrome_text"
313 android:layout_width="wrap_content"
314 android:layout_height="wrap_content"
315 android:textColor="@color/blue" />