1 <?xml version="1.0" encoding="utf-8"?>
4 Copyright 2016 Soren Stoutner <soren@stoutner.com>.
6 This file is part of Privacy Browser <https://www.stoutner.com/privacy-browser>.
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.
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.
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/>. -->
21 <!-- The `ScrollView` allows the `LinearLayout` to scroll if it exceeds the height of the page. -->
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" >
29 android:layout_height="wrap_content"
30 android:layout_width="match_parent"
31 android:orientation="vertical"
32 android:padding="16dp" >
34 <!-- The `RelativeLayout` contains the header. -->
36 android:layout_width="match_parent"
37 android:layout_height="wrap_content" >
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. -->
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" />
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" />
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" />
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. -->
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" >
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" />
88 android:id="@+id/about_version_brand"
89 android:layout_width="wrap_content"
90 android:layout_height="wrap_content" />
93 android:id="@+id/about_version_manufacturer"
94 android:layout_width="wrap_content"
95 android:layout_height="wrap_content" />
98 android:id="@+id/about_version_model"
99 android:layout_width="wrap_content"
100 android:layout_height="wrap_content" />
103 android:id="@+id/about_version_device"
104 android:layout_width="wrap_content"
105 android:layout_height="wrap_content"/>
108 android:id="@+id/about_version_bootloader"
109 android:layout_width="wrap_content"
110 android:layout_height="wrap_content" />
113 android:id="@+id/about_version_radio"
114 android:layout_width="wrap_content"
115 android:layout_height="wrap_content"/>
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" />
128 android:id="@+id/about_version_android"
129 android:layout_width="wrap_content"
130 android:layout_height="wrap_content"/>
133 android:id="@+id/about_version_build"
134 android:layout_width="wrap_content"
135 android:layout_height="wrap_content"/>
138 android:id="@+id/about_version_securitypatch"
139 android:layout_width="wrap_content"
140 android:layout_height="wrap_content" />
143 android:id="@+id/about_version_webkit"
144 android:layout_width="wrap_content"
145 android:layout_height="wrap_content"/>
148 android:id="@+id/about_version_chrome"
149 android:layout_width="wrap_content"
150 android:layout_height="wrap_content" />