summaryrefslogtreecommitdiffstats
path: root/res/layout
diff options
context:
space:
mode:
authorSteve Howard <showard@google.com>2010-08-20 17:45:03 -0700
committerSteve Howard <showard@google.com>2010-08-20 18:58:37 -0700
commit97d590d5a1f583acb7992d20851bdc6cd0454d12 (patch)
treefd134e8145899467c1b20c94cac5aac562169f81 /res/layout
parent1df61f0e1a275961ad9762ffc1d141adb91870e0 (diff)
downloadandroid_packages_providers_DownloadProvider-97d590d5a1f583acb7992d20851bdc6cd0454d12.tar.gz
android_packages_providers_DownloadProvider-97d590d5a1f583acb7992d20851bdc6cd0454d12.tar.bz2
android_packages_providers_DownloadProvider-97d590d5a1f583acb7992d20851bdc6cd0454d12.zip
Add UI message when queued for wifi due to size.
As it stands, when a download is paused because it's too big to proceed over mobile, and must proceed over wifi, it looks like any other paused download, with no indication of why it's paused. That may be passable for most other reasons for pausing a download, but it seems too confusing for this case. So this change adds a simple string message that replaces the progress bar when a download is paused for this reason (the icon also changes to a warning). The implementation isn't beautiful and could use some improvement, but I think it's acceptable and necessary. The exact UI design and wording are certainly open to change. Change-Id: I753d57f463e2614b5694bdc178d2a51066da8ca3
Diffstat (limited to 'res/layout')
-rw-r--r--res/layout/status_bar_ongoing_event_progress_bar.xml13
1 files changed, 12 insertions, 1 deletions
diff --git a/res/layout/status_bar_ongoing_event_progress_bar.xml b/res/layout/status_bar_ongoing_event_progress_bar.xml
index c6a71d46..e3a60b2e 100644
--- a/res/layout/status_bar_ongoing_event_progress_bar.xml
+++ b/res/layout/status_bar_ongoing_event_progress_bar.xml
@@ -88,14 +88,25 @@
android:paddingLeft="5dp"
/>
</LinearLayout>
+ <!-- Only one of progress_bar and paused_text will be visible. -->
<ProgressBar android:id="@+id/progress_bar"
style="?android:attr/progressBarStyleHorizontal"
- android:layout_width="match_parent"
+ android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:paddingBottom="8dp"
android:paddingRight="25dp"
/>
+ <TextView android:id="@+id/paused_text"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_alignParentBottom="true"
+ android:paddingBottom="8dp"
+ android:singleLine="true"
+ android:textSize="14sp"
+ android:paddingLeft="5dp"
+ android:textColor="#ff000000"
+ />
</RelativeLayout>
</LinearLayout>