summaryrefslogtreecommitdiff
path: root/main/src/ui/res/layout
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2021-03-12 15:50:04 +0100
committerArne Schwabe <arne@rfc2549.org>2021-03-12 16:00:27 +0100
commitfea8027f679bf6031342f3972cab7c32ad6e095e (patch)
treef943a29bc1f42cd5c6cde70a59cc7eb4a0e79888 /main/src/ui/res/layout
parent5359c051f711bdb53706b264a94042fa4033a5c2 (diff)
Add End of service and privacy policy in about dialog
This is a common requirement of Google play store. Even though this app should not really need them and therefore the content is pretty short and redundant.
Diffstat (limited to 'main/src/ui/res/layout')
-rw-r--r--main/src/ui/res/layout/about.xml246
1 files changed, 131 insertions, 115 deletions
diff --git a/main/src/ui/res/layout/about.xml b/main/src/ui/res/layout/about.xml
index acb1506f..fb2497ff 100644
--- a/main/src/ui/res/layout/about.xml
+++ b/main/src/ui/res/layout/about.xml
@@ -1,112 +1,127 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
+<?xml version="1.0" encoding="utf-8"?><!--
~ Copyright (c) 2012-2016 Arne Schwabe
~ Distributed under the GNU GPL v2 with additional terms. For full terms see the file doc/LICENSE.txt
-->
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:tools="http://schemas.android.com/tools"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:paddingLeft="@dimen/stdpadding"
- android:scrollbarStyle="outsideOverlay"
- android:paddingRight="@dimen/stdpadding" >
-
- <LinearLayout
+ xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
- android:orientation="vertical" >
+ android:paddingLeft="@dimen/stdpadding"
+ android:paddingRight="@dimen/stdpadding"
+ android:scrollbarStyle="outsideOverlay">
- <TextView
- android:id="@+id/version"
- tools:text="OpenVPN for Anroid 1.2.3"
+ <LinearLayout
android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:textAppearance="?android:attr/textAppearanceLarge"
- tools:ignore="SelectableText" />
+ android:layout_height="match_parent"
+ android:orientation="vertical">
- <Space
- android:layout_width="match_parent"
- android:layout_height="6sp" />
+ <TextView
+ android:id="@+id/version"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:textAppearance="?android:attr/textAppearanceLarge"
+ tools:ignore="SelectableText"
+ tools:text="OpenVPN for Android 1.2.3" />
<TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:autoLink="all"
- android:text="@string/copyright_blinktgui" />
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginVertical="12sp"
+ android:autoLink="all"
+
+ android:text="@string/copyright_blinktgui" />
+
- <Space
- android:layout_width="match_parent"
- android:layout_height="12sp" />
<TextView
android:id="@+id/version_ovpn2"
-
android:layout_width="match_parent"
android:layout_height="wrap_content"
+ android:layout_marginTop="12sp"
tools:text="OpenVPN version 874981723" />
+
<TextView
android:id="@+id/version_ovpn3"
android:layout_width="match_parent"
android:layout_height="wrap_content"
+ android:layout_marginBottom="12sp"
tools:text="OpenVPN3 core version 8df8718283" />
- <Space
+
+
+ <TextView
android:layout_width="match_parent"
- android:layout_height="12sp" />
+ android:layout_height="wrap_content"
+ android:layout_marginVertical="12sp"
+ android:autoLink="all"
+ android:text="@string/copyright_logo" />
+
+
<TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:autoLink="all"
- android:text="@string/copyright_logo" />
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginVertical="12sp"
+ android:autoLink="all"
+ android:text="@string/copyright_guicode" />
- <Space
- android:layout_width="match_parent"
- android:layout_height="12sp" />
<TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:autoLink="all"
- android:text="@string/copyright_guicode" />
+ android:id="@+id/translation"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:autoLink="all"
+
+ tools:ignore="SelectableText" />
+ <TextView
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginBottom="12sp"
+ android:autoLink="all"
+
+ android:text="@string/help_translate" />
<TextView
- android:id="@+id/translation"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:autoLink="all"
- tools:ignore="SelectableText" />
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="12sp"
+ android:text="@string/privpolicy"
+ android:textAppearance="?android:attr/textAppearanceMedium" />
+
+ <TextView
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="@string/privacy_policy" />
- <Space
- android:layout_width="match_parent"
- android:layout_height="12sp" />
<TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:autoLink="all"
- android:text="@string/help_translate" />
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="12sp"
+ android:text="@string/eol_notice_header"
+ android:textAppearance="?android:attr/textAppearanceMedium" />
+ <TextView
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="@string/eol_notice" />
+
- <Space
- android:layout_width="match_parent"
- android:layout_height="12sp" />
<TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="@string/copyright_others" />
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="24sp"
+ android:layout_marginBottom="12sp"
+ android:text="@string/copyright_others" />
- <Space
- android:layout_width="match_parent"
- android:layout_height="12sp" />
<TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="@string/openvpn"
- android:textAppearance="?android:attr/textAppearanceMedium" />
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="@string/openvpn"
+ android:textAppearance="?android:attr/textAppearanceMedium" />
<!--
ImageView
android:layout_width="wrap_content"
@@ -116,84 +131,85 @@
-->
<TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="@string/opevpn_copyright" />
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="@string/opevpn_copyright" />
<Space
- android:layout_width="match_parent"
- android:layout_height="20sp" />
+ android:layout_width="match_parent"
+ android:layout_height="20sp" />
<TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="@string/file_dialog"
- android:textAppearance="?android:attr/textAppearanceMedium" />
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="@string/file_dialog"
+ android:textAppearance="?android:attr/textAppearanceMedium" />
<TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="@string/copyright_file_dialog" />
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="@string/copyright_file_dialog" />
<Space
- android:layout_width="match_parent"
- android:layout_height="20sp" />
+ android:layout_width="match_parent"
+ android:layout_height="20sp" />
<TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="@string/lzo"
- android:textAppearance="?android:attr/textAppearanceMedium" />
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="@string/lzo"
+ android:textAppearance="?android:attr/textAppearanceMedium" />
<TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="@string/lzo_copyright" />
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="@string/lzo_copyright" />
<Space
- android:layout_width="match_parent"
- android:layout_height="20sp" />
+ android:layout_width="match_parent"
+ android:layout_height="20sp" />
<TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="@string/openssl"
- android:textAppearance="?android:attr/textAppearanceMedium" />
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="@string/openssl"
+ android:textAppearance="?android:attr/textAppearanceMedium" />
<TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="@string/copyright_openssl" />
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="@string/copyright_openssl" />
<Space
- android:layout_width="match_parent"
- android:layout_height="20sp" />
+ android:layout_width="match_parent"
+ android:layout_height="20sp" />
<TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="@string/bouncy_castle"
- android:textAppearance="?android:attr/textAppearanceMedium" />
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="@string/bouncy_castle"
+ android:textAppearance="?android:attr/textAppearanceMedium" />
<TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="@string/copyright_bouncycastle" />
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="@string/copyright_bouncycastle" />
<Space
- android:layout_width="match_parent"
- android:layout_height="150dp" />
+ android:layout_width="match_parent"
+ android:layout_height="150dp" />
+
<TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="@string/full_licenses"
- android:textAppearance="?android:attr/textAppearanceLarge" />
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="@string/full_licenses"
+ android:textAppearance="?android:attr/textAppearanceLarge" />
<TextView
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:id="@+id/full_licenses"
- android:layout_gravity="center_horizontal" />
+ android:id="@+id/full_licenses"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:layout_gravity="center_horizontal" />
</LinearLayout>
</ScrollView>