summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorChris Wren <cwren@android.com>2013-04-17 14:58:58 -0400
committerChris Wren <cwren@android.com>2013-04-17 16:19:51 -0400
commitab617db46883ffbb9ee77dacd54613bdc026cc2d (patch)
treef4e1c99562eecc35e0fafeee391d256e2163f704 /res
parentf362b8f1d503df040c55ac04913dabdbb2cd7155 (diff)
downloadandroid_packages_screensavers_PhotoTable-ab617db46883ffbb9ee77dacd54613bdc026cc2d.tar.gz
android_packages_screensavers_PhotoTable-ab617db46883ffbb9ee77dacd54613bdc026cc2d.tar.bz2
android_packages_screensavers_PhotoTable-ab617db46883ffbb9ee77dacd54613bdc026cc2d.zip
no blank album lists.
Bug: 8060514 Change-Id: Iaf122899f45b9fd94877e695c99872b8103bd616
Diffstat (limited to 'res')
-rw-r--r--res/layout/settingslist.xml29
-rw-r--r--res/values/strings.xml2
2 files changed, 25 insertions, 6 deletions
diff --git a/res/layout/settingslist.xml b/res/layout/settingslist.xml
index 0ea6661..c383856 100644
--- a/res/layout/settingslist.xml
+++ b/res/layout/settingslist.xml
@@ -22,11 +22,28 @@
android:paddingRight="16dp"
/>
- <ProgressBar android:id="@android:id/empty"
- style="?android:attr/progressBarStyleLarge"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="center"
- />
+ <FrameLayout
+ android:id="@android:id/empty"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent" >
+
+ <ProgressBar
+ android:id="@+id/spinner"
+ style="?android:attr/progressBarStyleLarge"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center" />
+
+ <TextView
+ android:id="@+id/sorry"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:alpha="0.5"
+ android:gravity="center_vertical|center_horizontal"
+ android:text="@string/no_photos"
+ android:textColor="@android:color/white"
+ android:textSize="20sp"
+ android:visibility="gone" />
+ </FrameLayout>
</merge>
diff --git a/res/values/strings.xml b/res/values/strings.xml
index 087f8b1..1f64e10 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -47,4 +47,6 @@
<!-- Click to clear selection in the album selection activity. [CHAR LIMIT=15] -->
<string name="photodream_select_none">Deselect All</string>
+ <!-- Text shown instead of a list of albums when there are no albums with photos. [CHAR LIMIT=50] -->
+ <string name="no_photos">No photos on the device.</string>
</resources>