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