diff options
author | Arne Schwabe <arne@rfc2549.org> | 2012-08-21 01:09:48 +0200 |
---|---|---|
committer | Arne Schwabe <arne@rfc2549.org> | 2012-08-21 01:09:48 +0200 |
commit | a961e7203a288be0bd1bc3e5063c9f63aa0f6143 (patch) | |
tree | 218b9e86a6586b6b4e0b64c5cd471693adc3c4b8 /res/layout | |
parent | c511a77d584b728ca52789bae8d1c16412d49e46 (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.xml | 2 | ||||
-rw-r--r-- | res/layout/vpn_profile_list.xml | 49 |
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 |