]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/blob - res/layout/about_tab_version.xml
Add an option to delete all domain settings at once. https://redmine.stoutner.com...
[PrivacyBrowserAndroid.git] / res / layout / about_tab_version.xml
1 <?xml version="1.0" encoding="utf-8"?>
2
3 <!--
4   Copyright 2016 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     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" >
27
28     <LinearLayout
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" >
34
35         <!-- The RelativeLayout contains the header. -->
36         <RelativeLayout
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" >
41
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. -->
44             <ImageView
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" />
51
52             <!-- We need to include android:layout_toRightOf until API>=17. -->
53             <TextView
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" />
63
64             <!-- We need to include android:layout_toRightOf until API>=17. -->
65             <TextView
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" />
73         </RelativeLayout>
74
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. -->
78         <LinearLayout
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" >
87
88             <!-- Hardware. -->
89             <TextView
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" />
97
98             <!-- Brand. -->
99             <LinearLayout
100                 android:layout_width="wrap_content"
101                 android:layout_height="wrap_content"
102                 android:orientation="horizontal" >
103
104                 <TextView
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" />
109
110                 <TextView
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" />
115             </LinearLayout>
116
117             <!-- Manufacturer. -->
118             <LinearLayout
119                 android:layout_width="wrap_content"
120                 android:layout_height="wrap_content"
121                 android:orientation="horizontal" >
122
123                 <TextView
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" />
128
129                 <TextView
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" />
134             </LinearLayout>
135
136             <!-- Model. -->
137             <LinearLayout
138                 android:layout_width="wrap_content"
139                 android:layout_height="wrap_content"
140                 android:orientation="horizontal" >
141
142                 <TextView
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" />
147
148                 <TextView
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" />
153             </LinearLayout>
154
155             <!-- Device. -->
156             <LinearLayout
157                 android:layout_width="wrap_content"
158                 android:layout_height="wrap_content"
159                 android:orientation="horizontal" >
160
161                 <TextView
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" />
166
167                 <TextView
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" />
172             </LinearLayout>
173
174             <!-- Bootloader. -->
175             <LinearLayout
176                 android:layout_width="wrap_content"
177                 android:layout_height="wrap_content"
178                 android:orientation="horizontal" >
179
180                 <TextView
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" />
185
186                 <TextView
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" />
191             </LinearLayout>
192
193             <!-- Radio. -->
194             <LinearLayout
195                 android:layout_width="wrap_content"
196                 android:layout_height="wrap_content"
197                 android:orientation="horizontal" >
198
199                 <TextView
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" />
204
205                 <TextView
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" />
210             </LinearLayout>
211
212             <!-- Software. -->
213             <TextView
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" />
222
223             <!-- Android. -->
224             <LinearLayout
225                 android:layout_width="wrap_content"
226                 android:layout_height="wrap_content"
227                 android:orientation="horizontal" >
228
229                 <TextView
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" />
234
235                 <TextView
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" />
240             </LinearLayout>
241
242             <!-- Build. -->
243             <LinearLayout
244                 android:layout_width="wrap_content"
245                 android:layout_height="wrap_content"
246                 android:orientation="horizontal" >
247
248                 <TextView
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" />
253
254                 <TextView
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" />
259             </LinearLayout>
260
261             <!-- Security Patch. -->
262             <LinearLayout
263                 android:layout_width="wrap_content"
264                 android:layout_height="wrap_content"
265                 android:orientation="horizontal" >
266
267                 <TextView
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" />
272
273                 <TextView
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" />
278                 </LinearLayout>
279
280             <!-- WebKit. -->
281             <LinearLayout
282                 android:layout_width="wrap_content"
283                 android:layout_height="wrap_content"
284                 android:orientation="horizontal" >
285
286                 <TextView
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" />
291
292                 <TextView
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" />
297             </LinearLayout>
298
299             <!-- Chrome. -->
300             <LinearLayout
301                 android:layout_width="wrap_content"
302                 android:layout_height="wrap_content"
303                 android:orientation="horizontal" >
304
305                 <TextView
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" />
310
311                 <TextView
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" />
316             </LinearLayout>
317         </LinearLayout>
318     </LinearLayout>
319 </ScrollView>