summaryrefslogtreecommitdiff
path: root/res/layout
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2012-08-21 01:09:48 +0200
committerArne Schwabe <arne@rfc2549.org>2012-08-21 01:09:48 +0200
commit765818d19bbc5debfc2fd034943c071008b4090c (patch)
tree02966958f730aadc27d583cc9a04b7cadb41c336 /res/layout
parent561313d5521abea226d4e976959b490732add16e (diff)
Add a nice "what to do" screen if no VPN has been added yet
Diffstat (limited to 'res/layout')
-rw-r--r--res/layout/file_dialog_main.xml2
-rw-r--r--res/layout/vpn_profile_list.xml49
2 files changed, 50 insertions, 1 deletions
diff --git a/res/layout/file_dialog_main.xml b/res/layout/file_dialog_main.xml
index 2a623dc6..db791663 100644
--- a/res/layout/file_dialog_main.xml
+++ b/res/layout/file_dialog_main.xml
@@ -25,7 +25,7 @@
android:layout_height="wrap_content"
android:text="@string/select_file" >
</Button>
-
+
<Button
android:id="@+id/fdClear"
android:layout_width="wrap_content"
diff --git a/res/layout/vpn_profile_list.xml b/res/layout/vpn_profile_list.xml
new file mode 100644
index 00000000..f4a24ece
--- /dev/null
+++ b/res/layout/vpn_profile_list.xml
@@ -0,0 +1,49 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:orientation="vertical" >
+
+ <ListView
+ android:id="@android:id/list"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent" />
+
+ <LinearLayout
+ android:id="@android:id/empty"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:gravity="center"
+ android:orientation="vertical" >
+
+ <TextView
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:text="@string/no_vpn_profiles_defined"
+ android:textAppearance="?android:attr/textAppearanceMedium" />
+
+ <Space
+ android:layout_width="match_parent"
+ android:layout_height="10sp" />
+
+ <TextView
+ android:id="@+id/add_new_vpn_hint"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content" />
+
+ <TextView
+ android:id="@+id/import_vpn_hint"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content" />
+
+<Space
+ android:layout_width="match_parent"
+ android:layout_height="10sp" />
+
+ <TextView
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:text="@string/faq_hint" />
+ </LinearLayout>
+
+</LinearLayout> \ No newline at end of file