summaryrefslogtreecommitdiffstats
path: root/remoting/resources
diff options
context:
space:
mode:
authorlambroslambrou@chromium.org <lambroslambrou@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-18 00:10:15 +0000
committerlambroslambrou@chromium.org <lambroslambrou@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-18 00:10:15 +0000
commit2b653681887388a7cd7e26586cb94b87a393ad54 (patch)
tree3b87bfa381d83a75b0126599d36ea3ad6a4a76a5 /remoting/resources
parentf0779b5f9025898b681ea7b33e61e4682f19c224 (diff)
downloadchromium_src-2b653681887388a7cd7e26586cb94b87a393ad54.zip
chromium_src-2b653681887388a7cd7e26586cb94b87a393ad54.tar.gz
chromium_src-2b653681887388a7cd7e26586cb94b87a393ad54.tar.bz2
Clear host list and show progress indicator when switching accounts.
When loading the host list, this replaces the main view with a spinning progress indicator similar to the GMail example at http://developer.android.com/design/building-blocks/progress.html#activity BUG=351523 Review URL: https://codereview.chromium.org/200963002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@257543 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/resources')
-rw-r--r--remoting/resources/android/layout/main.xml26
1 files changed, 18 insertions, 8 deletions
diff --git a/remoting/resources/android/layout/main.xml b/remoting/resources/android/layout/main.xml
index acb8462..25a958b 100644
--- a/remoting/resources/android/layout/main.xml
+++ b/remoting/resources/android/layout/main.xml
@@ -5,14 +5,24 @@
found in the LICENSE file.
-->
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:orientation="vertical"
+<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_height="match_parent"
android:layout_width="match_parent">
- <TextView android:id="@+id/hostList_greeting"
- android:layout_height="wrap_content"
- android:layout_width="match_parent"/>
- <ListView android:id="@+id/hostList_chooser"
+ <LinearLayout android:id="@+id/hostList_main"
+ android:orientation="vertical"
android:layout_height="match_parent"
- android:layout_width="match_parent"/>
-</LinearLayout>
+ android:layout_width="match_parent">
+ <TextView android:id="@+id/hostList_greeting"
+ android:layout_height="wrap_content"
+ android:layout_width="match_parent"/>
+ <ListView android:id="@+id/hostList_chooser"
+ android:layout_height="match_parent"
+ android:layout_width="match_parent"/>
+ </LinearLayout>
+ <ProgressBar android:id="@+id/hostList_progress"
+ android:layout_height="wrap_content"
+ android:layout_width="wrap_content"
+ android:layout_gravity="center"
+ android:visibility="gone"
+ style="@android:style/Widget.Holo.ProgressBar.Large"/>
+</FrameLayout>