aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenny Root <kenny@the-b.org>2008-11-20 09:14:15 +0000
committerKenny Root <kenny@the-b.org>2008-11-20 09:14:15 +0000
commitd92ba5d10a2709b0eda59d2b756bb13f4c602494 (patch)
treeeca96ebb4922ab45735c2fef682ceda1b35d0ecf
parent765da599f0bf190d7507f8bc02c2732f67afc307 (diff)
downloadconnectbot-d92ba5d10a2709b0eda59d2b756bb13f4c602494.tar.gz
connectbot-d92ba5d10a2709b0eda59d2b756bb13f4c602494.tar.bz2
connectbot-d92ba5d10a2709b0eda59d2b756bb13f4c602494.zip
Add a hint about what to do when Host List is empty.
-rw-r--r--res/layout/act_hostlist.xml22
-rw-r--r--res/values/strings.xml1
2 files changed, 19 insertions, 4 deletions
diff --git a/res/layout/act_hostlist.xml b/res/layout/act_hostlist.xml
index 36d2235..6959dfb 100644
--- a/res/layout/act_hostlist.xml
+++ b/res/layout/act_hostlist.xml
@@ -23,13 +23,27 @@
android:layout_height="fill_parent"
>
- <ListView android:id="@android:id/list"
+ <RelativeLayout
android:layout_width="fill_parent"
android:layout_height="0dip"
android:layout_weight="1"
- />
-
-
+ >
+
+ <ListView android:id="@android:id/list"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
+ />
+
+ <TextView android:id="@android:id/empty"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
+ android:text="@string/list_host_empty"
+ android:textAppearance="?android:attr/textAppearanceMedium"
+ android:gravity="center"
+ />
+
+ </RelativeLayout>
+
<FrameLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
diff --git a/res/values/strings.xml b/res/values/strings.xml
index b12dfda..0285880 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -139,6 +139,7 @@
<string name="list_host_edit">Edit host</string>
<string name="list_host_portforwards">Edit port forwards</string>
<string name="list_host_delete">Delete host</string>
+ <string name="list_host_empty">Use the quick-connect box\nbelow to connect to a host.</string>
<string name="list_rotation_land">Force landscape</string>
<string name="list_rotation_port">Force portrait</string>