]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/blob - app/src/main/res/layout/about_tab_version.xml
Release 1.9.1.
[PrivacyBrowserAndroid.git] / app / src / main / 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     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_width="wrap_content"
44                 android:layout_height="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_width="wrap_content"
52                 android:layout_height="wrap_content"
53                 android:text="@string/privacy_browser"
54                 android:textStyle="bold"
55                 android:textSize="22sp"
56                 android:textColor="@color/black"
57                 android:layout_toEndOf="@id/about_version_icon" />
58
59             <TextView
60                 android:id="@+id/about_version_number"
61                 android:layout_width="wrap_content"
62                 android:layout_height="wrap_content"
63                 android:textColor="@color/blue"
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_width="match_parent"
72             android:layout_height="wrap_content"
73             android:orientation="vertical"
74             android:paddingTop="16dp"
75             android:paddingStart="4dp"
76             android:paddingEnd="0dp" >
77
78             <!-- Hardware. -->
79             <TextView
80                 android:layout_width="wrap_content"
81                 android:layout_height="wrap_content"
82                 android:text="@string/hardware"
83                 android:textStyle="bold"
84                 android:textSize="18sp"
85                 android:textColor="@color/dark_blue" />
86
87             <TextView
88                 android:id="@+id/about_version_brand"
89                 android:layout_width="wrap_content"
90                 android:layout_height="wrap_content" />
91
92             <TextView
93                 android:id="@+id/about_version_manufacturer"
94                 android:layout_width="wrap_content"
95                 android:layout_height="wrap_content" />
96
97             <TextView
98                 android:id="@+id/about_version_model"
99                 android:layout_width="wrap_content"
100                 android:layout_height="wrap_content" />
101
102             <TextView
103                 android:id="@+id/about_version_device"
104                 android:layout_width="wrap_content"
105                 android:layout_height="wrap_content"/>
106
107             <TextView
108                 android:id="@+id/about_version_bootloader"
109                 android:layout_width="wrap_content"
110                 android:layout_height="wrap_content" />
111
112             <TextView
113                 android:id="@+id/about_version_radio"
114                 android:layout_width="wrap_content"
115                 android:layout_height="wrap_content"/>
116
117             <!-- Software. -->
118             <TextView
119                 android:layout_width="wrap_content"
120                 android:layout_height="wrap_content"
121                 android:text="@string/software"
122                 android:textStyle="bold"
123                 android:textSize="18sp"
124                 android:textColor="@color/dark_blue"
125                 android:paddingTop="12dp" />
126
127             <TextView
128                 android:id="@+id/about_version_android"
129                 android:layout_width="wrap_content"
130                 android:layout_height="wrap_content"/>
131
132             <TextView
133                 android:id="@+id/about_version_build"
134                 android:layout_width="wrap_content"
135                 android:layout_height="wrap_content"/>
136
137             <TextView
138                 android:id="@+id/about_version_securitypatch"
139                 android:layout_width="wrap_content"
140                 android:layout_height="wrap_content" />
141
142             <TextView
143                 android:id="@+id/about_version_webkit"
144                 android:layout_width="wrap_content"
145                 android:layout_height="wrap_content"/>
146
147             <TextView
148                 android:id="@+id/about_version_chrome"
149                 android:layout_width="wrap_content"
150                 android:layout_height="wrap_content" />
151         </LinearLayout>
152     </LinearLayout>
153 </ScrollView>