]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/blob - app/src/main/res/layout/about_tab_version.xml
31d6bf78a134d6050bbc22574b75b3c06cd45bc6
[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 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="RtlSymmetry"` suppressed the lint warning about adding `android:paddingStart`, which wouldn't work with this layout.
41                 `tools:ignore="ContentDescription"` suppresses the lint warning about supplying a content description for the `ImageView`,
42                 which isn't needed in this case because the `ImageView` is only decorative. -->
43             <ImageView
44                 android:id="@+id/icon"
45                 android:layout_height="wrap_content"
46                 android:layout_width="wrap_content"
47                 android:src="@mipmap/privacy_browser"
48                 android:paddingTop="10dp"
49                 android:paddingEnd="5dp"
50                 tools:ignore="RtlSymmetry,ContentDescription" />
51
52             <TextView
53                 android:id="@+id/privacy_browser_textview"
54                 android:layout_height="wrap_content"
55                 android:layout_width="wrap_content"
56                 android:text="@string/privacy_browser"
57                 android:textStyle="bold"
58                 android:textSize="22sp"
59                 android:textColor="?attr/aboutTitle"
60                 android:paddingTop="12dp"
61                 android:layout_toEndOf="@id/icon" />
62
63             <TextView
64                 android:id="@+id/version"
65                 android:layout_height="wrap_content"
66                 android:layout_width="wrap_content"
67                 android:textColor="?attr/aboutText"
68                 android:textIsSelectable="true"
69                 android:layout_below="@id/privacy_browser_textview"
70                 android:layout_toEndOf="@id/icon" />
71         </RelativeLayout>
72
73         <!-- The purpose of this `LinearLayout` is to provide padding on the start of the `TextViews` to make them line up with `about_version_icon`.
74              Although we don't need it, we have to include `android:paddingEnd` to make lint happy. -->
75         <LinearLayout
76             android:layout_height="wrap_content"
77             android:layout_width="match_parent"
78             android:orientation="vertical"
79             android:paddingTop="16dp"
80             android:paddingStart="4dp"
81             android:paddingEnd="0dp" >
82
83             <!-- Hardware. -->
84             <TextView
85                 android:layout_height="wrap_content"
86                 android:layout_width="wrap_content"
87                 android:text="@string/hardware"
88                 android:textStyle="bold"
89                 android:textSize="18sp"
90                 android:textColor="?attr/aboutTitle" />
91
92             <TextView
93                 android:id="@+id/brand"
94                 android:layout_height="wrap_content"
95                 android:layout_width="wrap_content"
96                 android:textIsSelectable="true" />
97
98             <TextView
99                 android:id="@+id/manufacturer"
100                 android:layout_height="wrap_content"
101                 android:layout_width="wrap_content"
102                 android:textIsSelectable="true" />
103
104             <TextView
105                 android:id="@+id/model"
106                 android:layout_height="wrap_content"
107                 android:layout_width="wrap_content"
108                 android:textIsSelectable="true" />
109
110             <TextView
111                 android:id="@+id/device"
112                 android:layout_height="wrap_content"
113                 android:layout_width="wrap_content"
114                 android:textIsSelectable="true" />
115
116             <TextView
117                 android:id="@+id/bootloader"
118                 android:layout_height="wrap_content"
119                 android:layout_width="wrap_content"
120                 android:textIsSelectable="true" />
121
122             <TextView
123                 android:id="@+id/radio"
124                 android:layout_height="wrap_content"
125                 android:layout_width="wrap_content"
126                 android:textIsSelectable="true" />
127
128             <!-- Software. -->
129             <TextView
130                 android:layout_height="wrap_content"
131                 android:layout_width="wrap_content"
132                 android:text="@string/software"
133                 android:textStyle="bold"
134                 android:textSize="18sp"
135                 android:textColor="?attr/aboutTitle"
136                 android:paddingTop="12dp" />
137
138             <TextView
139                 android:id="@+id/android"
140                 android:layout_height="wrap_content"
141                 android:layout_width="wrap_content"
142                 android:textIsSelectable="true" />
143
144             <TextView
145                 android:id="@+id/security_patch"
146                 android:layout_height="wrap_content"
147                 android:layout_width="wrap_content"
148                 android:textIsSelectable="true" />
149
150             <TextView
151                 android:id="@+id/build"
152                 android:layout_height="wrap_content"
153                 android:layout_width="wrap_content"
154                 android:textIsSelectable="true" />
155
156             <TextView
157                 android:id="@+id/webview"
158                 android:layout_height="wrap_content"
159                 android:layout_width="wrap_content"
160                 android:textIsSelectable="true" />
161
162             <TextView
163                 android:id="@+id/orbot"
164                 android:layout_height="wrap_content"
165                 android:layout_width="wrap_content"
166                 android:textIsSelectable="true" />
167
168             <TextView
169                 android:id="@+id/open_keychain"
170                 android:layout_height="wrap_content"
171                 android:layout_width="wrap_content"
172                 android:textIsSelectable="true" />
173
174             <!-- Block Lists. -->
175             <TextView
176                 android:layout_height="wrap_content"
177                 android:layout_width="wrap_content"
178                 android:text="@string/blocklists"
179                 android:textStyle="bold"
180                 android:textSize="18sp"
181                 android:textColor="?attr/aboutTitle"
182                 android:paddingTop="12dp" />
183
184             <TextView
185                 android:id="@+id/easylist"
186                 android:layout_height="wrap_content"
187                 android:layout_width="wrap_content"
188                 android:textIsSelectable="true" />
189
190             <TextView
191                 android:id="@+id/easyprivacy"
192                 android:layout_height="wrap_content"
193                 android:layout_width="wrap_content"
194                 android:textIsSelectable="true" />
195
196             <TextView
197                 android:id="@+id/fanboy_annoyance"
198                 android:layout_height="wrap_content"
199                 android:layout_width="wrap_content"
200                 android:textIsSelectable="true" />
201
202             <TextView
203                 android:id="@+id/fanboy_social"
204                 android:layout_height="wrap_content"
205                 android:layout_width="wrap_content"
206                 android:textIsSelectable="true" />
207
208             <TextView
209                 android:id="@+id/ultraprivacy"
210                 android:layout_height="wrap_content"
211                 android:layout_width="wrap_content"
212                 android:textIsSelectable="true" />
213
214             <!-- Package Signature. -->
215             <TextView
216                 android:layout_height="wrap_content"
217                 android:layout_width="wrap_content"
218                 android:text="@string/package_signature"
219                 android:textStyle="bold"
220                 android:textSize="18sp"
221                 android:textColor="?attr/aboutTitle"
222                 android:paddingTop="12dp" />
223
224             <TextView
225                 android:id="@+id/certificate_issuer_dn"
226                 android:layout_height="wrap_content"
227                 android:layout_width="wrap_content"
228                 android:textIsSelectable="true" />
229
230             <TextView
231                 android:id="@+id/certificate_subject_dn"
232                 android:layout_height="wrap_content"
233                 android:layout_width="wrap_content"
234                 android:textIsSelectable="true" />
235
236             <TextView
237                 android:id="@+id/certificate_start_date"
238                 android:layout_height="wrap_content"
239                 android:layout_width="wrap_content"
240                 android:textIsSelectable="true" />
241
242             <TextView
243                 android:id="@+id/certificate_end_date"
244                 android:layout_height="wrap_content"
245                 android:layout_width="wrap_content"
246                 android:textIsSelectable="true" />
247
248             <TextView
249                 android:id="@+id/certificate_version"
250                 android:layout_height="wrap_content"
251                 android:layout_width="wrap_content"
252                 android:textIsSelectable="true" />
253
254             <TextView
255                 android:id="@+id/certificate_serial_number"
256                 android:layout_height="wrap_content"
257                 android:layout_width="wrap_content"
258                 android:textIsSelectable="true" />
259
260             <TextView
261                 android:id="@+id/certificate_signature_algorithm"
262                 android:layout_height="wrap_content"
263                 android:layout_width="wrap_content"
264                 android:textIsSelectable="true" />
265         </LinearLayout>
266     </LinearLayout>
267 </ScrollView>