summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2009-08-20 19:33:42 -0700
committerDianne Hackborn <hackbod@google.com>2009-08-20 19:33:42 -0700
commit02e638e6bf6dac903396a67029d4d48e3cfa87d9 (patch)
tree6aec18187614f696cfa57beac0a2ced8911d38c4 /res
parent7c312c15e33b6cffbda707429e88ade498fc9f5e (diff)
downloadandroid_packages_apps_Trebuchet-02e638e6bf6dac903396a67029d4d48e3cfa87d9.tar.gz
android_packages_apps_Trebuchet-02e638e6bf6dac903396a67029d4d48e3cfa87d9.tar.bz2
android_packages_apps_Trebuchet-02e638e6bf6dac903396a67029d4d48e3cfa87d9.zip
Implement previews in the wallpaper picker.
Note that the UI is ugly ugly ugly, but previews are actually working.
Diffstat (limited to 'res')
-rw-r--r--res/layout/live_wallpaper_content.xml53
-rw-r--r--res/values/strings.xml5
2 files changed, 58 insertions, 0 deletions
diff --git a/res/layout/live_wallpaper_content.xml b/res/layout/live_wallpaper_content.xml
new file mode 100644
index 000000000..68e301e71
--- /dev/null
+++ b/res/layout/live_wallpaper_content.xml
@@ -0,0 +1,53 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2009 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:orientation="vertical"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
+ >
+
+ <FrameLayout
+ android:layout_width="fill_parent"
+ android:layout_height="0px"
+ 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:gravity="center"
+ android:text="@string/live_wallpaper_empty"
+ android:visibility="gone"
+ android:textAppearance="?android:attr/textAppearanceMedium"
+ />
+
+ </FrameLayout>
+
+ <Button android:id="@+id/set"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="@string/set_live_wallpaper"
+ android:layout_gravity="center_horizontal" />
+
+</LinearLayout>
diff --git a/res/values/strings.xml b/res/values/strings.xml
index 476f47ab4..75d30e75a 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -130,4 +130,9 @@
<!-- Text to show user in place of a gadget when we can't display it properly -->
<string name="gadget_error_text">Problem loading widget</string>
+
+ <!-- STUFF FOR THE WALLPAPER PICKER. -->
+ <string name="live_wallpaper_empty">No live wallpapers.</string>
+ <string name="set_live_wallpaper">Set wallpaper</string>
+
</resources>