summaryrefslogtreecommitdiffstats
path: root/remoting/resources
diff options
context:
space:
mode:
authorlambroslambrou@chromium.org <lambroslambrou@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-26 05:22:05 +0000
committerlambroslambrou@chromium.org <lambroslambrou@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-26 05:22:05 +0000
commit522a5bb8e2e22bb226f6c882839c37324e7c76d2 (patch)
treea47f275bdd4a476e3b423ca81d70f87cd26a0da9 /remoting/resources
parent53ff96387648c419d79e139dc622d83c79c26458 (diff)
downloadchromium_src-522a5bb8e2e22bb226f6c882839c37324e7c76d2.zip
chromium_src-522a5bb8e2e22bb226f6c882839c37324e7c76d2.tar.gz
chromium_src-522a5bb8e2e22bb226f6c882839c37324e7c76d2.tar.bz2
Add empty host-list screen to Android Chromoting app
This shows a nicer-looking screen with an icon, some text, and some hyperlink text. The hyperlink opens the Help activity with a web-site that helps the user set up their hosts for remote access. NOTRY=true Review URL: https://codereview.chromium.org/210223008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@259510 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/resources')
-rw-r--r--remoting/resources/android/layout/main.xml22
-rw-r--r--remoting/resources/android/values/styles.xml7
-rw-r--r--remoting/resources/remoting_strings.grd3
3 files changed, 29 insertions, 3 deletions
diff --git a/remoting/resources/android/layout/main.xml b/remoting/resources/android/layout/main.xml
index b3a6754..975cd6b 100644
--- a/remoting/resources/android/layout/main.xml
+++ b/remoting/resources/android/layout/main.xml
@@ -11,11 +11,27 @@
<ListView android:id="@+id/hostList_chooser"
android:layout_height="match_parent"
android:layout_width="match_parent"/>
- <TextView android:id="@+id/hostList_empty"
+ <LinearLayout android:id="@+id/hostList_empty"
+ android:gravity="center"
android:layout_height="match_parent"
android:layout_width="match_parent"
- android:text="@string/host_list_empty_android"
- android:visibility="gone"/>
+ android:orientation="vertical"
+ android:visibility="gone">
+ <ImageView android:layout_height="wrap_content"
+ android:layout_width="wrap_content"
+ android:src="@drawable/empty_host_list"/>
+ <TextView android:gravity="center"
+ android:layout_height="wrap_content"
+ android:layout_width="match_parent"
+ android:text="@string/host_list_empty_android"
+ style="@style/EmptyStateText"/>
+ <TextView android:id="@+id/host_setup_link_android"
+ android:gravity="center"
+ android:layout_height="wrap_content"
+ android:layout_width="match_parent"
+ android:text="@string/host_setup_link_android"
+ style="@style/EmptyStateText.Hyperlink"/>
+ </LinearLayout>
<ProgressBar android:id="@+id/hostList_progress"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
diff --git a/remoting/resources/android/values/styles.xml b/remoting/resources/android/values/styles.xml
index a78a6d9..881d2bb 100644
--- a/remoting/resources/android/values/styles.xml
+++ b/remoting/resources/android/values/styles.xml
@@ -12,4 +12,11 @@
<style name="MainActionBar" parent="@android:style/Widget.Holo.ActionBar">
<item name="android:displayOptions">showHome</item>
</style>
+ <style name="EmptyStateText" parent="@android:style/TextAppearance.Holo.Large">
+ <item name="android:textColor">#888</item>
+ </style>
+ <style name="EmptyStateText.Hyperlink">
+ <item name="android:textColor">@android:color/holo_blue_light</item>
+ <item name="android:textStyle">italic</item>
+ </style>
</resources>
diff --git a/remoting/resources/remoting_strings.grd b/remoting/resources/remoting_strings.grd
index fe9342b..467caa4 100644
--- a/remoting/resources/remoting_strings.grd
+++ b/remoting/resources/remoting_strings.grd
@@ -396,6 +396,9 @@
<message desc="Message displayed to the user if there are no hosts registered to their account" name="IDS_HOST_LIST_EMPTY_ANDROID" formatter_data="android_java">
You have no computers registered.
</message>
+ <message desc="Message displayed to the user if there are no hosts registered to their account. This is styled to look like a hyperlink. When a user activates the link, they are taken to a web page that explains how to set up a Chromoting host." name="IDS_HOST_SETUP_LINK_ANDROID" formatter_data="android_java">
+ Learn how to set up a computer for remote access.
+ </message>
<message desc="Title of the authentication dialog" name="IDS_TITLE_AUTHENTICATE" formatter_data="android_java">
Authenticate to host
</message>