]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/blob - app/src/main/res/layout/about_tab_version.xml
Display memory usage information in About > Version. https://redmine.stoutner.com...
[PrivacyBrowserAndroid.git] / app / src / main / res / layout / about_tab_version.xml
1 <?xml version="1.0" encoding="utf-8"?>
2
3 <!--
4   Copyright © 2016-2018,2020 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 scroll view allows the linear layout 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
28     <LinearLayout
29         android:layout_height="wrap_content"
30         android:layout_width="match_parent"
31         android:orientation="vertical"
32         android:padding="16dp" >
33
34         <!-- The `RelativeLayout` contains the header. -->
35         <RelativeLayout
36             android:layout_width="match_parent"
37             android:layout_height="wrap_content" >
38
39             <!--`tools:ignore="RtlSymmetry"` suppressed the lint warning about adding `android:paddingStart`, which wouldn't work with this layout.
40                 `tools:ignore="ContentDescription"` suppresses the lint warning about supplying a content description for the image view,
41                 which isn't needed in this case because the image view is only decorative. -->
42             <ImageView
43                 android:id="@+id/icon"
44                 android:layout_height="wrap_content"
45                 android:layout_width="wrap_content"
46                 android:src="@mipmap/privacy_browser"
47                 android:paddingTop="10dp"
48                 android:paddingEnd="5dp"
49                 tools:ignore="RtlSymmetry,ContentDescription" />
50
51             <TextView
52                 android:id="@+id/privacy_browser_textview"
53                 android:layout_height="wrap_content"
54                 android:layout_width="wrap_content"
55                 android:text="@string/privacy_browser"
56                 android:textStyle="bold"
57                 android:textSize="22sp"
58                 android:textColor="?attr/blueTitleTextColor"
59                 android:paddingTop="12dp"
60                 android:layout_toEndOf="@id/icon" />
61
62             <TextView
63                 android:id="@+id/version"
64                 android:layout_height="wrap_content"
65                 android:layout_width="wrap_content"
66                 android:textColor="?attr/blueTextColor"
67                 android:textIsSelectable="true"
68                 android:layout_below="@id/privacy_browser_textview"
69                 android:layout_toEndOf="@id/icon" />
70         </RelativeLayout>
71
72         <!-- The purpose of this linear layout is to provide padding on the start of the text views to make them line up with `about_version_icon`.
73              Although we don't need it, we have to include `android:paddingEnd` to make lint happy. -->
74         <LinearLayout
75             android:layout_height="wrap_content"
76             android:layout_width="match_parent"
77             android:orientation="vertical"
78             android:paddingTop="16dp"
79             android:paddingStart="4dp"
80             android:paddingEnd="0dp" >
81
82             <!-- Hardware. -->
83             <TextView
84                 android:layout_height="wrap_content"
85                 android:layout_width="wrap_content"
86                 android:text="@string/hardware"
87                 android:textStyle="bold"
88                 android:textSize="18sp"
89                 android:textColor="?attr/blueTitleTextColor" />
90
91             <TextView
92                 android:id="@+id/brand"
93                 android:layout_height="wrap_content"
94                 android:layout_width="wrap_content"
95                 android:textIsSelectable="true" />
96
97             <TextView
98                 android:id="@+id/manufacturer"
99                 android:layout_height="wrap_content"
100                 android:layout_width="wrap_content"
101                 android:textIsSelectable="true" />
102
103             <TextView
104                 android:id="@+id/model"
105                 android:layout_height="wrap_content"
106                 android:layout_width="wrap_content"
107                 android:textIsSelectable="true" />
108
109             <TextView
110                 android:id="@+id/device"
111                 android:layout_height="wrap_content"
112                 android:layout_width="wrap_content"
113                 android:textIsSelectable="true" />
114
115             <TextView
116                 android:id="@+id/bootloader"
117                 android:layout_height="wrap_content"
118                 android:layout_width="wrap_content"
119                 android:textIsSelectable="true" />
120
121             <TextView
122                 android:id="@+id/radio"
123                 android:layout_height="wrap_content"
124                 android:layout_width="wrap_content"
125                 android:textIsSelectable="true" />
126
127             <!-- Software. -->
128             <TextView
129                 android:layout_height="wrap_content"
130                 android:layout_width="wrap_content"
131                 android:text="@string/software"
132                 android:textStyle="bold"
133                 android:textSize="18sp"
134                 android:textColor="?attr/blueTitleTextColor"
135                 android:paddingTop="12dp" />
136
137             <TextView
138                 android:id="@+id/android"
139                 android:layout_height="wrap_content"
140                 android:layout_width="wrap_content"
141                 android:textIsSelectable="true" />
142
143             <TextView
144                 android:id="@+id/security_patch"
145                 android:layout_height="wrap_content"
146                 android:layout_width="wrap_content"
147                 android:textIsSelectable="true" />
148
149             <TextView
150                 android:id="@+id/build"
151                 android:layout_height="wrap_content"
152                 android:layout_width="wrap_content"
153                 android:textIsSelectable="true" />
154
155             <TextView
156                 android:id="@+id/webview_provider"
157                 android:layout_height="wrap_content"
158                 android:layout_width="wrap_content"
159                 android:textIsSelectable="true" />
160
161             <TextView
162                 android:id="@+id/webview_version"
163                 android:layout_height="wrap_content"
164                 android:layout_width="wrap_content"
165                 android:textIsSelectable="true" />
166
167             <TextView
168                 android:id="@+id/orbot"
169                 android:layout_height="wrap_content"
170                 android:layout_width="wrap_content"
171                 android:textIsSelectable="true" />
172
173             <TextView
174                 android:id="@+id/i2p"
175                 android:layout_height="wrap_content"
176                 android:layout_width="wrap_content"
177                 android:textIsSelectable="true" />
178
179             <TextView
180                 android:id="@+id/open_keychain"
181                 android:layout_height="wrap_content"
182                 android:layout_width="wrap_content"
183                 android:textIsSelectable="true" />
184
185             <!-- Memory usage. -->
186             <TextView
187                 android:layout_height="wrap_content"
188                 android:layout_width="wrap_content"
189                 android:text="@string/memory_usage"
190                 android:textStyle="bold"
191                 android:textSize="18sp"
192                 android:textColor="?attr/blueTitleTextColor"
193                 android:paddingTop="12dp" />
194
195             <TextView
196                 android:id="@+id/app_consumed_memory"
197                 android:layout_height="wrap_content"
198                 android:layout_width="wrap_content"
199                 android:textIsSelectable="true" />
200
201             <TextView
202                 android:id="@+id/app_available_memory"
203                 android:layout_height="wrap_content"
204                 android:layout_width="wrap_content"
205                 android:textIsSelectable="true" />
206
207             <TextView
208                 android:id="@+id/app_total_memory"
209                 android:layout_height="wrap_content"
210                 android:layout_width="wrap_content"
211                 android:textIsSelectable="true" />
212
213             <TextView
214                 android:id="@+id/app_maximum_memory"
215                 android:layout_height="wrap_content"
216                 android:layout_width="wrap_content"
217                 android:textIsSelectable="true" />
218
219             <TextView
220                 android:id="@+id/system_consumed_memory"
221                 android:layout_height="wrap_content"
222                 android:layout_width="wrap_content"
223                 android:textIsSelectable="true" />
224
225             <TextView
226                 android:id="@+id/system_available_memory"
227                 android:layout_height="wrap_content"
228                 android:layout_width="wrap_content"
229                 android:textIsSelectable="true" />
230
231             <TextView
232                 android:id="@+id/system_total_memory"
233                 android:layout_height="wrap_content"
234                 android:layout_width="wrap_content"
235                 android:textIsSelectable="true" />
236
237             <!-- Blocklists. -->
238             <TextView
239                 android:layout_height="wrap_content"
240                 android:layout_width="wrap_content"
241                 android:text="@string/blocklists"
242                 android:textStyle="bold"
243                 android:textSize="18sp"
244                 android:textColor="?attr/blueTitleTextColor"
245                 android:paddingTop="12dp" />
246
247             <TextView
248                 android:id="@+id/easylist"
249                 android:layout_height="wrap_content"
250                 android:layout_width="wrap_content"
251                 android:textIsSelectable="true" />
252
253             <TextView
254                 android:id="@+id/easyprivacy"
255                 android:layout_height="wrap_content"
256                 android:layout_width="wrap_content"
257                 android:textIsSelectable="true" />
258
259             <TextView
260                 android:id="@+id/fanboy_annoyance"
261                 android:layout_height="wrap_content"
262                 android:layout_width="wrap_content"
263                 android:textIsSelectable="true" />
264
265             <TextView
266                 android:id="@+id/fanboy_social"
267                 android:layout_height="wrap_content"
268                 android:layout_width="wrap_content"
269                 android:textIsSelectable="true" />
270
271             <TextView
272                 android:id="@+id/ultralist"
273                 android:layout_height="wrap_content"
274                 android:layout_width="wrap_content"
275                 android:textIsSelectable="true" />
276
277             <TextView
278                 android:id="@+id/ultraprivacy"
279                 android:layout_height="wrap_content"
280                 android:layout_width="wrap_content"
281                 android:textIsSelectable="true" />
282
283             <!-- Package Signature. -->
284             <TextView
285                 android:layout_height="wrap_content"
286                 android:layout_width="wrap_content"
287                 android:text="@string/package_signature"
288                 android:textStyle="bold"
289                 android:textSize="18sp"
290                 android:textColor="?attr/blueTitleTextColor"
291                 android:paddingTop="12dp" />
292
293             <TextView
294                 android:id="@+id/certificate_issuer_dn"
295                 android:layout_height="wrap_content"
296                 android:layout_width="wrap_content"
297                 android:textIsSelectable="true" />
298
299             <TextView
300                 android:id="@+id/certificate_subject_dn"
301                 android:layout_height="wrap_content"
302                 android:layout_width="wrap_content"
303                 android:textIsSelectable="true" />
304
305             <TextView
306                 android:id="@+id/certificate_start_date"
307                 android:layout_height="wrap_content"
308                 android:layout_width="wrap_content"
309                 android:textIsSelectable="true" />
310
311             <TextView
312                 android:id="@+id/certificate_end_date"
313                 android:layout_height="wrap_content"
314                 android:layout_width="wrap_content"
315                 android:textIsSelectable="true" />
316
317             <TextView
318                 android:id="@+id/certificate_version"
319                 android:layout_height="wrap_content"
320                 android:layout_width="wrap_content"
321                 android:textIsSelectable="true" />
322
323             <TextView
324                 android:id="@+id/certificate_serial_number"
325                 android:layout_height="wrap_content"
326                 android:layout_width="wrap_content"
327                 android:textIsSelectable="true" />
328
329             <TextView
330                 android:id="@+id/certificate_signature_algorithm"
331                 android:layout_height="wrap_content"
332                 android:layout_width="wrap_content"
333                 android:textIsSelectable="true" />
334         </LinearLayout>
335     </LinearLayout>
336 </ScrollView>