summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThe Android Open Source Project <initial-contribution@android.com>2010-01-12 15:19:25 -0800
committerThe Android Open Source Project <initial-contribution@android.com>2010-01-12 15:19:25 -0800
commit96aa9b7ede5b61da4f7ec11ff19a1b663c7d260d (patch)
treeef185a57919863482b6dbd831c185d1bfcecf8d4
parentba87fd7da2fa4be877bc5b3a6759daa12f09b687 (diff)
downloadandroid_packages_wallpapers_LivePicker-96aa9b7ede5b61da4f7ec11ff19a1b663c7d260d.zip
android_packages_wallpapers_LivePicker-96aa9b7ede5b61da4f7ec11ff19a1b663c7d260d.tar.gz
android_packages_wallpapers_LivePicker-96aa9b7ede5b61da4f7ec11ff19a1b663c7d260d.tar.bz2
android-2.1_r1 snapshot
-rw-r--r--Android.mk47
-rw-r--r--AndroidManifest.xml53
-rw-r--r--MODULE_LICENSE_APACHE20
-rw-r--r--NOTICE190
-rw-r--r--android.software.live_wallpaper.xml23
-rw-r--r--res/drawable-hdpi/ic_launcher_live_wallpaper.pngbin0 -> 6333 bytes
-rw-r--r--res/drawable-hdpi/livewallpaper_placeholder.pngbin0 -> 4814 bytes
-rw-r--r--res/drawable-mdpi/ic_launcher_live_wallpaper.pngbin0 -> 3259 bytes
-rw-r--r--res/drawable-mdpi/livewallpaper_placeholder.pngbin0 -> 2478 bytes
-rw-r--r--res/layout/live_wallpaper_entry.xml72
-rw-r--r--res/layout/live_wallpaper_list.xml38
-rw-r--r--res/layout/live_wallpaper_loading.xml24
-rw-r--r--res/layout/live_wallpaper_preview.xml45
-rw-r--r--res/values-cs/strings.xml27
-rw-r--r--res/values-da/strings.xml27
-rw-r--r--res/values-de/strings.xml27
-rw-r--r--res/values-el/strings.xml27
-rw-r--r--res/values-es-rUS/strings.xml27
-rw-r--r--res/values-es/strings.xml27
-rw-r--r--res/values-fr/strings.xml27
-rw-r--r--res/values-it/strings.xml27
-rw-r--r--res/values-ja/strings.xml27
-rw-r--r--res/values-ko/strings.xml27
-rw-r--r--res/values-nb/strings.xml27
-rw-r--r--res/values-nl/strings.xml27
-rw-r--r--res/values-pl/strings.xml27
-rw-r--r--res/values-pt-rPT/strings.xml29
-rw-r--r--res/values-pt/strings.xml29
-rw-r--r--res/values-ru/strings.xml27
-rw-r--r--res/values-sv/strings.xml27
-rw-r--r--res/values-tr/strings.xml27
-rw-r--r--res/values-zh-rCN/strings.xml27
-rw-r--r--res/values-zh-rTW/strings.xml27
-rw-r--r--res/values/colors.xml24
-rw-r--r--res/values/dimensions.xml25
-rw-r--r--res/values/strings.xml43
-rw-r--r--res/values/styles.xml36
-rw-r--r--src/com/android/wallpaper/livepicker/LiveWallpaperListActivity.java236
-rw-r--r--src/com/android/wallpaper/livepicker/LiveWallpaperPreview.java288
39 files changed, 1688 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk
new file mode 100644
index 0000000..a682ef3
--- /dev/null
+++ b/Android.mk
@@ -0,0 +1,47 @@
+#
+# 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.
+#
+
+LOCAL_PATH := $(call my-dir)
+
+########################
+include $(CLEAR_VARS)
+
+LOCAL_MODULE := android.software.live_wallpaper.xml
+
+LOCAL_MODULE_TAGS := user
+
+LOCAL_MODULE_CLASS := ETC
+
+# This will install the file in /system/etc/permissions
+#
+LOCAL_MODULE_PATH := $(TARGET_OUT_ETC)/permissions
+
+LOCAL_SRC_FILES := $(LOCAL_MODULE)
+
+include $(BUILD_PREBUILT)
+
+########################
+include $(CLEAR_VARS)
+
+#LOCAL_MODULE_TAGS := user
+
+LOCAL_SRC_FILES := $(call all-subdir-java-files)
+LOCAL_REQUIRES_MODULE := android.software.live_wallpaper.xml
+
+LOCAL_PACKAGE_NAME := LiveWallpapersPicker
+LOCAL_CERTIFICATE := platform
+
+include $(BUILD_PACKAGE)
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
new file mode 100644
index 0000000..94d925a
--- /dev/null
+++ b/AndroidManifest.xml
@@ -0,0 +1,53 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+/*
+**
+** Copyright 2008, 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.
+*/
+-->
+
+<manifest
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ package="com.android.wallpaper.livepicker">
+
+ <uses-permission android:name="android.permission.SET_WALLPAPER_COMPONENT" />
+ <uses-permission android:name="android.permission.BIND_WALLPAPER" />
+
+ <application
+ android:process="android.process.acore"
+ android:label="@string/application_name"
+ android:icon="@drawable/ic_launcher_live_wallpaper">
+
+ <activity android:name="LiveWallpaperListActivity"
+ android:icon="@drawable/ic_launcher_live_wallpaper"
+ android:label="@string/live_wallpaper_picker_title"
+ android:theme="@android:style/Theme.NoTitleBar"
+ android:screenOrientation="nosensor">
+ <intent-filter>
+ <action android:name="android.service.wallpaper.LIVE_WALLPAPER_CHOOSER" />
+ <action android:name="android.intent.action.SET_WALLPAPER" />
+ <category android:name="android.intent.category.DEFAULT" />
+ </intent-filter>
+ </activity>
+
+ <activity android:name="LiveWallpaperPreview"
+ android:icon="@drawable/ic_launcher_live_wallpaper"
+ android:label="@string/live_wallpaper_preview_title"
+ android:theme="@style/Preview"
+ android:screenOrientation="nosensor" />
+
+ </application>
+
+</manifest>
diff --git a/MODULE_LICENSE_APACHE2 b/MODULE_LICENSE_APACHE2
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/MODULE_LICENSE_APACHE2
diff --git a/NOTICE b/NOTICE
new file mode 100644
index 0000000..c5b1efa
--- /dev/null
+++ b/NOTICE
@@ -0,0 +1,190 @@
+
+ Copyright (c) 2005-2008, 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.
+
+ 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.
+
+
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
diff --git a/android.software.live_wallpaper.xml b/android.software.live_wallpaper.xml
new file mode 100644
index 0000000..bf2b12d
--- /dev/null
+++ b/android.software.live_wallpaper.xml
@@ -0,0 +1,23 @@
+<?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.
+-->
+
+<!-- This feature should be defined for devices that support live wallpapers.
+ There are minimum hardware requirements to be able to support this
+ feature: robust multiple GL context support, fast enough CPU, enough
+ RAM to allow the wallpaper to be running all of the time. -->
+<permissions>
+ <feature name="android.software.live_wallpaper" />
+</permissions>
diff --git a/res/drawable-hdpi/ic_launcher_live_wallpaper.png b/res/drawable-hdpi/ic_launcher_live_wallpaper.png
new file mode 100644
index 0000000..6277411
--- /dev/null
+++ b/res/drawable-hdpi/ic_launcher_live_wallpaper.png
Binary files differ
diff --git a/res/drawable-hdpi/livewallpaper_placeholder.png b/res/drawable-hdpi/livewallpaper_placeholder.png
new file mode 100644
index 0000000..3743489
--- /dev/null
+++ b/res/drawable-hdpi/livewallpaper_placeholder.png
Binary files differ
diff --git a/res/drawable-mdpi/ic_launcher_live_wallpaper.png b/res/drawable-mdpi/ic_launcher_live_wallpaper.png
new file mode 100644
index 0000000..6de7aaf
--- /dev/null
+++ b/res/drawable-mdpi/ic_launcher_live_wallpaper.png
Binary files differ
diff --git a/res/drawable-mdpi/livewallpaper_placeholder.png b/res/drawable-mdpi/livewallpaper_placeholder.png
new file mode 100644
index 0000000..6a51d0b
--- /dev/null
+++ b/res/drawable-mdpi/livewallpaper_placeholder.png
Binary files differ
diff --git a/res/layout/live_wallpaper_entry.xml b/res/layout/live_wallpaper_entry.xml
new file mode 100644
index 0000000..529371e
--- /dev/null
+++ b/res/layout/live_wallpaper_entry.xml
@@ -0,0 +1,72 @@
+<?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.
+-->
+
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+
+ android:paddingLeft="6dip"
+ android:paddingRight="6dip"
+ android:paddingTop="6dip"
+ android:paddingBottom="6dip"
+
+ android:minHeight="?android:attr/listPreferredItemHeight">
+
+ <ImageView
+ android:id="@+id/thumbnail"
+
+ android:layout_width="@dimen/live_wallpaper_thumbnail_width"
+ android:layout_height="@dimen/live_wallpaper_thumbnail_width"
+
+ android:layout_gravity="center_vertical"
+
+ android:scaleType="centerCrop" />
+
+ <LinearLayout
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+
+ android:layout_marginLeft="10dip"
+ android:layout_marginRight="8dip"
+ android:layout_centerVertical="true"
+ android:layout_toRightOf="@id/thumbnail"
+
+ android:orientation="vertical">
+
+ <TextView
+ android:id="@+id/title_author"
+
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+
+ android:textAppearance="?android:attr/textAppearanceMedium"
+
+ android:singleLine="true"
+ android:ellipsize="marquee" />
+
+ <TextView
+ android:id="@+id/description"
+
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+
+ android:textAppearance="?android:attr/textAppearanceSmall"
+
+ android:maxLines="3" />
+
+ </LinearLayout>
+
+</RelativeLayout>
diff --git a/res/layout/live_wallpaper_list.xml b/res/layout/live_wallpaper_list.xml
new file mode 100644
index 0000000..bab79ff
--- /dev/null
+++ b/res/layout/live_wallpaper_list.xml
@@ -0,0 +1,38 @@
+<?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.
+-->
+
+<merge xmlns:android="http://schemas.android.com/apk/res/android" >
+
+ <ListView
+ android:id="@android:id/list"
+
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
+
+ android:drawSelectorOnTop="false" />
+
+ <TextView
+ android:id="@android:id/empty"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
+
+ android:gravity="center"
+ android:visibility="gone"
+
+ android:text="@string/live_wallpaper_empty"
+ android:textAppearance="?android:attr/textAppearanceMedium" />
+
+</merge> \ No newline at end of file
diff --git a/res/layout/live_wallpaper_loading.xml b/res/layout/live_wallpaper_loading.xml
new file mode 100644
index 0000000..7dd375e
--- /dev/null
+++ b/res/layout/live_wallpaper_loading.xml
@@ -0,0 +1,24 @@
+<?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.
+-->
+
+<TextView xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
+
+ android:gravity="center"
+
+ android:text="@string/live_wallpaper_loading"
+ android:textAppearance="?android:attr/textAppearanceMedium" />
diff --git a/res/layout/live_wallpaper_preview.xml b/res/layout/live_wallpaper_preview.xml
new file mode 100644
index 0000000..d5da853
--- /dev/null
+++ b/res/layout/live_wallpaper_preview.xml
@@ -0,0 +1,45 @@
+<?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:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+
+ android:layout_gravity="center_horizontal|bottom"
+
+ android:paddingBottom="4dip">
+
+ <Button
+ android:layout_width="160dip"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center_vertical"
+
+ android:text="@string/wallpaper_instructions"
+
+ android:onClick="setLiveWallpaper" />
+
+ <Button
+ android:id="@+id/configure"
+
+ android:layout_width="160dip"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center_vertical"
+
+ android:text="@string/configure_wallpaper"
+
+ android:onClick="configureLiveWallpaper" />
+
+</LinearLayout>
diff --git a/res/values-cs/strings.xml b/res/values-cs/strings.xml
new file mode 100644
index 0000000..8b98a41
--- /dev/null
+++ b/res/values-cs/strings.xml
@@ -0,0 +1,27 @@
+<?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.
+-->
+<resources xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+ <string name="application_name" msgid="4119979710394894209">"Live Wallpaper Picker"</string>
+ <string name="live_wallpaper_picker_title" msgid="6161053357728149149">"Aktivní tapety"</string>
+ <string name="live_wallpaper_preview_title" msgid="1130080613611954763">"Náhled aktivní tapety"</string>
+ <string name="configure_wallpaper" msgid="7396598925806288258">"Nastavení…"</string>
+ <string name="wallpaper_instructions" msgid="4215640646180727542">"Nastavit tapetu"</string>
+ <string name="live_wallpaper_empty" msgid="4278728108785853407">"Žádné aktivní tapety."</string>
+ <string name="set_live_wallpaper" msgid="2381437614949033266">"Nastavit tapetu"</string>
+ <string name="wallpaper_title_and_author" msgid="8891734217843935304">"<xliff:g id="TITLE">%1$s</xliff:g> (autor: <xliff:g id="AUTHOR">%2$s</xliff:g>)"</string>
+ <string name="live_wallpaper_loading" msgid="2488371303130330734">"Načítání aktivní tapety…"</string>
+</resources>
diff --git a/res/values-da/strings.xml b/res/values-da/strings.xml
new file mode 100644
index 0000000..aa242c2
--- /dev/null
+++ b/res/values-da/strings.xml
@@ -0,0 +1,27 @@
+<?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.
+-->
+<resources xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+ <string name="application_name" msgid="4119979710394894209">"Live Wallpaper Picker"</string>
+ <string name="live_wallpaper_picker_title" msgid="6161053357728149149">"Live tapet"</string>
+ <string name="live_wallpaper_preview_title" msgid="1130080613611954763">"Eksempelvisning af Levende tapet"</string>
+ <string name="configure_wallpaper" msgid="7396598925806288258">"Indstillinger …"</string>
+ <string name="wallpaper_instructions" msgid="4215640646180727542">"Angiv tapet"</string>
+ <string name="live_wallpaper_empty" msgid="4278728108785853407">"Intet levende tapet"</string>
+ <string name="set_live_wallpaper" msgid="2381437614949033266">"Angiv tapet"</string>
+ <string name="wallpaper_title_and_author" msgid="8891734217843935304">"<xliff:g id="TITLE">%1$s</xliff:g>af <xliff:g id="AUTHOR">%2$s</xliff:g>"</string>
+ <string name="live_wallpaper_loading" msgid="2488371303130330734">"Indlæser levende tapet…"</string>
+</resources>
diff --git a/res/values-de/strings.xml b/res/values-de/strings.xml
new file mode 100644
index 0000000..b6b65fb
--- /dev/null
+++ b/res/values-de/strings.xml
@@ -0,0 +1,27 @@
+<?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.
+-->
+<resources xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+ <string name="application_name" msgid="4119979710394894209">"Live Wallpaper Picker"</string>
+ <string name="live_wallpaper_picker_title" msgid="6161053357728149149">"Live-Hintergrundbilder"</string>
+ <string name="live_wallpaper_preview_title" msgid="1130080613611954763">"Vorschau für Live-Hintergrundbild"</string>
+ <string name="configure_wallpaper" msgid="7396598925806288258">"Einstellungen…"</string>
+ <string name="wallpaper_instructions" msgid="4215640646180727542">"Hintergrund festlegen"</string>
+ <string name="live_wallpaper_empty" msgid="4278728108785853407">"Keine Live-Hintergrundbilder"</string>
+ <string name="set_live_wallpaper" msgid="2381437614949033266">"Hintergrundbild festlegen"</string>
+ <string name="wallpaper_title_and_author" msgid="8891734217843935304">"<xliff:g id="TITLE">%1$s</xliff:g> von <xliff:g id="AUTHOR">%2$s</xliff:g>"</string>
+ <string name="live_wallpaper_loading" msgid="2488371303130330734">"Live-Hintergrundbild wird geladen…"</string>
+</resources>
diff --git a/res/values-el/strings.xml b/res/values-el/strings.xml
new file mode 100644
index 0000000..3a389db
--- /dev/null
+++ b/res/values-el/strings.xml
@@ -0,0 +1,27 @@
+<?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.
+-->
+<resources xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+ <string name="application_name" msgid="4119979710394894209">"Επιλογέας ταπετσαρίας Live"</string>
+ <string name="live_wallpaper_picker_title" msgid="6161053357728149149">"Κινούμενες ταπετσαρίες του "</string>
+ <string name="live_wallpaper_preview_title" msgid="1130080613611954763">"Προεπισκόπηση κινούμενης ταπετσαρίας"</string>
+ <string name="configure_wallpaper" msgid="7396598925806288258">"Ρυθμίσεις…"</string>
+ <string name="wallpaper_instructions" msgid="4215640646180727542">"Ορισμός ταπετσαρίας"</string>
+ <string name="live_wallpaper_empty" msgid="4278728108785853407">"Δεν υπάρχουν ζωντανές ταπετσαρίες."</string>
+ <string name="set_live_wallpaper" msgid="2381437614949033266">"Ορισμός ταπετσαρίας"</string>
+ <string name="wallpaper_title_and_author" msgid="8891734217843935304">"<xliff:g id="TITLE">%1$s</xliff:g>του/της <xliff:g id="AUTHOR">%2$s</xliff:g>"</string>
+ <string name="live_wallpaper_loading" msgid="2488371303130330734">"Φόρτωση κινούμενης ταπετσαρίας…"</string>
+</resources>
diff --git a/res/values-es-rUS/strings.xml b/res/values-es-rUS/strings.xml
new file mode 100644
index 0000000..336e250
--- /dev/null
+++ b/res/values-es-rUS/strings.xml
@@ -0,0 +1,27 @@
+<?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.
+-->
+<resources xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+ <string name="application_name" msgid="4119979710394894209">"Live Wallpaper Picker"</string>
+ <string name="live_wallpaper_picker_title" msgid="6161053357728149149">"Fondos de pantalla animados"</string>
+ <string name="live_wallpaper_preview_title" msgid="1130080613611954763">"Vista previa del fondo de pantalla animado"</string>
+ <string name="configure_wallpaper" msgid="7396598925806288258">"Configuración…"</string>
+ <string name="wallpaper_instructions" msgid="4215640646180727542">"Definir papel tapiz"</string>
+ <string name="live_wallpaper_empty" msgid="4278728108785853407">"No se han elegido como fondos de pantalla."</string>
+ <string name="set_live_wallpaper" msgid="2381437614949033266">"Definir como fondo de pantalla"</string>
+ <string name="wallpaper_title_and_author" msgid="8891734217843935304">"<xliff:g id="TITLE">%1$s</xliff:g>por <xliff:g id="AUTHOR">%2$s</xliff:g>"</string>
+ <string name="live_wallpaper_loading" msgid="2488371303130330734">"Cargando fondo de pantalla animado…"</string>
+</resources>
diff --git a/res/values-es/strings.xml b/res/values-es/strings.xml
new file mode 100644
index 0000000..652f24c
--- /dev/null
+++ b/res/values-es/strings.xml
@@ -0,0 +1,27 @@
+<?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.
+-->
+<resources xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+ <string name="application_name" msgid="4119979710394894209">"Selector de fondo de pantalla animado"</string>
+ <string name="live_wallpaper_picker_title" msgid="6161053357728149149">"Fondos de pantalla animados"</string>
+ <string name="live_wallpaper_preview_title" msgid="1130080613611954763">"Vista previa de fondo de pantalla animado"</string>
+ <string name="configure_wallpaper" msgid="7396598925806288258">"Configuración…"</string>
+ <string name="wallpaper_instructions" msgid="4215640646180727542">"Establecer fondo de pantalla"</string>
+ <string name="live_wallpaper_empty" msgid="4278728108785853407">"No hay ningún fondo de pantalla animado."</string>
+ <string name="set_live_wallpaper" msgid="2381437614949033266">"Establecer fondo de pantalla"</string>
+ <string name="wallpaper_title_and_author" msgid="8891734217843935304">"<xliff:g id="TITLE">%1$s</xliff:g> de <xliff:g id="AUTHOR">%2$s</xliff:g>"</string>
+ <string name="live_wallpaper_loading" msgid="2488371303130330734">"Cargando fondo de pantalla animado…"</string>
+</resources>
diff --git a/res/values-fr/strings.xml b/res/values-fr/strings.xml
new file mode 100644
index 0000000..bb63382
--- /dev/null
+++ b/res/values-fr/strings.xml
@@ -0,0 +1,27 @@
+<?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.
+-->
+<resources xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+ <string name="application_name" msgid="4119979710394894209">"Sélecteur de fond d\'écran animé"</string>
+ <string name="live_wallpaper_picker_title" msgid="6161053357728149149">"Fonds d\'écran animés"</string>
+ <string name="live_wallpaper_preview_title" msgid="1130080613611954763">"Aperçu du fond d\'écran animé"</string>
+ <string name="configure_wallpaper" msgid="7396598925806288258">"Paramètres…"</string>
+ <string name="wallpaper_instructions" msgid="4215640646180727542">"Sélectionner"</string>
+ <string name="live_wallpaper_empty" msgid="4278728108785853407">"Sans fond d\'écran animé"</string>
+ <string name="set_live_wallpaper" msgid="2381437614949033266">"Sélectionner"</string>
+ <string name="wallpaper_title_and_author" msgid="8891734217843935304">"<xliff:g id="TITLE">%1$s</xliff:g> de <xliff:g id="AUTHOR">%2$s</xliff:g>"</string>
+ <string name="live_wallpaper_loading" msgid="2488371303130330734">"Chargement du fond d\'écran animé…"</string>
+</resources>
diff --git a/res/values-it/strings.xml b/res/values-it/strings.xml
new file mode 100644
index 0000000..a92b0e2
--- /dev/null
+++ b/res/values-it/strings.xml
@@ -0,0 +1,27 @@
+<?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.
+-->
+<resources xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+ <string name="application_name" msgid="4119979710394894209">"Selettore sfondo animato"</string>
+ <string name="live_wallpaper_picker_title" msgid="6161053357728149149">"Sfondi live"</string>
+ <string name="live_wallpaper_preview_title" msgid="1130080613611954763">"Anteprima sfondo live"</string>
+ <string name="configure_wallpaper" msgid="7396598925806288258">"Impostazioni…"</string>
+ <string name="wallpaper_instructions" msgid="4215640646180727542">"Imposta sfondo"</string>
+ <string name="live_wallpaper_empty" msgid="4278728108785853407">"Nessuno sfondo animato."</string>
+ <string name="set_live_wallpaper" msgid="2381437614949033266">"Imposta sfondo"</string>
+ <string name="wallpaper_title_and_author" msgid="8891734217843935304">"<xliff:g id="TITLE">%1$s</xliff:g> di <xliff:g id="AUTHOR">%2$s</xliff:g>"</string>
+ <string name="live_wallpaper_loading" msgid="2488371303130330734">"Caricamento sfondo live in corso…"</string>
+</resources>
diff --git a/res/values-ja/strings.xml b/res/values-ja/strings.xml
new file mode 100644
index 0000000..9f040d3
--- /dev/null
+++ b/res/values-ja/strings.xml
@@ -0,0 +1,27 @@
+<?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.
+-->
+<resources xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+ <string name="application_name" msgid="4119979710394894209">"Live Wallpaper Picker"</string>
+ <string name="live_wallpaper_picker_title" msgid="6161053357728149149">"ライブ壁紙"</string>
+ <string name="live_wallpaper_preview_title" msgid="1130080613611954763">"ライブ壁紙のプレビュー"</string>
+ <string name="configure_wallpaper" msgid="7396598925806288258">"設定..."</string>
+ <string name="wallpaper_instructions" msgid="4215640646180727542">"壁紙に設定"</string>
+ <string name="live_wallpaper_empty" msgid="4278728108785853407">"ライブ壁紙がありません。"</string>
+ <string name="set_live_wallpaper" msgid="2381437614949033266">"壁紙を設定"</string>
+ <string name="wallpaper_title_and_author" msgid="8891734217843935304">"<xliff:g id="TITLE">%1$s</xliff:g>(作成者: <xliff:g id="AUTHOR">%2$s</xliff:g>)"</string>
+ <string name="live_wallpaper_loading" msgid="2488371303130330734">"ライブ壁紙を読み込み中…"</string>
+</resources>
diff --git a/res/values-ko/strings.xml b/res/values-ko/strings.xml
new file mode 100644
index 0000000..e0c635a
--- /dev/null
+++ b/res/values-ko/strings.xml
@@ -0,0 +1,27 @@
+<?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.
+-->
+<resources xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+ <string name="application_name" msgid="4119979710394894209">"라이브 배경화면 선택기"</string>
+ <string name="live_wallpaper_picker_title" msgid="6161053357728149149">"라이브 배경화면"</string>
+ <string name="live_wallpaper_preview_title" msgid="1130080613611954763">"라이브 배경화면 미리보기"</string>
+ <string name="configure_wallpaper" msgid="7396598925806288258">"설정…"</string>
+ <string name="wallpaper_instructions" msgid="4215640646180727542">"배경화면 설정"</string>
+ <string name="live_wallpaper_empty" msgid="4278728108785853407">"라이브 배경화면이 없습니다."</string>
+ <string name="set_live_wallpaper" msgid="2381437614949033266">"배경화면 설정"</string>
+ <string name="wallpaper_title_and_author" msgid="8891734217843935304">"<xliff:g id="TITLE">%1$s</xliff:g> 개발자: <xliff:g id="AUTHOR">%2$s</xliff:g>"</string>
+ <string name="live_wallpaper_loading" msgid="2488371303130330734">"라이브 배경화면 로드 중..."</string>
+</resources>
diff --git a/res/values-nb/strings.xml b/res/values-nb/strings.xml
new file mode 100644
index 0000000..1ceb08e
--- /dev/null
+++ b/res/values-nb/strings.xml
@@ -0,0 +1,27 @@
+<?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.
+-->
+<resources xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+ <string name="application_name" msgid="4119979710394894209">"Live Wallpaper Picker"</string>
+ <string name="live_wallpaper_picker_title" msgid="6161053357728149149">"Aktive bakgrunner"</string>
+ <string name="live_wallpaper_preview_title" msgid="1130080613611954763">"Forhåndsvisning av aktive bakgrunner"</string>
+ <string name="configure_wallpaper" msgid="7396598925806288258">"Innstillinger"</string>
+ <string name="wallpaper_instructions" msgid="4215640646180727542">"Velg bakgrunnsbilde"</string>
+ <string name="live_wallpaper_empty" msgid="4278728108785853407">"Ingen levende bakgrunnsbilder."</string>
+ <string name="set_live_wallpaper" msgid="2381437614949033266">"Velg bakgrunnsbilde"</string>
+ <string name="wallpaper_title_and_author" msgid="8891734217843935304">"<xliff:g id="TITLE">%1$s</xliff:g> av <xliff:g id="AUTHOR">%2$s</xliff:g>"</string>
+ <string name="live_wallpaper_loading" msgid="2488371303130330734">"Laster inn aktive bakgrunner ..."</string>
+</resources>
diff --git a/res/values-nl/strings.xml b/res/values-nl/strings.xml
new file mode 100644
index 0000000..136f0b1
--- /dev/null
+++ b/res/values-nl/strings.xml
@@ -0,0 +1,27 @@
+<?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.
+-->
+<resources xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+ <string name="application_name" msgid="4119979710394894209">"Live achtergrondkiezer"</string>
+ <string name="live_wallpaper_picker_title" msgid="6161053357728149149">"Live achtergronden"</string>
+ <string name="live_wallpaper_preview_title" msgid="1130080613611954763">"Voorbeeld van live achtergrond"</string>
+ <string name="configure_wallpaper" msgid="7396598925806288258">"Instellingen…"</string>
+ <string name="wallpaper_instructions" msgid="4215640646180727542">"Achtergrond instellen"</string>
+ <string name="live_wallpaper_empty" msgid="4278728108785853407">"Geen live achtergronden."</string>
+ <string name="set_live_wallpaper" msgid="2381437614949033266">"Achtergrond instellen"</string>
+ <string name="wallpaper_title_and_author" msgid="8891734217843935304">"<xliff:g id="TITLE">%1$s</xliff:g> door <xliff:g id="AUTHOR">%2$s</xliff:g>"</string>
+ <string name="live_wallpaper_loading" msgid="2488371303130330734">"Live achtergrond laden…"</string>
+</resources>
diff --git a/res/values-pl/strings.xml b/res/values-pl/strings.xml
new file mode 100644
index 0000000..13999f1
--- /dev/null
+++ b/res/values-pl/strings.xml
@@ -0,0 +1,27 @@
+<?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.
+-->
+<resources xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+ <string name="application_name" msgid="4119979710394894209">"Live Wallpaper Picker"</string>
+ <string name="live_wallpaper_picker_title" msgid="6161053357728149149">"Aktywne tapety"</string>
+ <string name="live_wallpaper_preview_title" msgid="1130080613611954763">"Podgląd animowanej tapety"</string>
+ <string name="configure_wallpaper" msgid="7396598925806288258">"Ustawienia…"</string>
+ <string name="wallpaper_instructions" msgid="4215640646180727542">"Ustaw tapetę"</string>
+ <string name="live_wallpaper_empty" msgid="4278728108785853407">"Brak aktywnych tapet."</string>
+ <string name="set_live_wallpaper" msgid="2381437614949033266">"Ustaw tapetę"</string>
+ <string name="wallpaper_title_and_author" msgid="8891734217843935304">"<xliff:g id="TITLE">%1$s</xliff:g>, autor: <xliff:g id="AUTHOR">%2$s</xliff:g>"</string>
+ <string name="live_wallpaper_loading" msgid="2488371303130330734">"Wczytywanie aktywnej tapety…"</string>
+</resources>
diff --git a/res/values-pt-rPT/strings.xml b/res/values-pt-rPT/strings.xml
new file mode 100644
index 0000000..d6b3fe9
--- /dev/null
+++ b/res/values-pt-rPT/strings.xml
@@ -0,0 +1,29 @@
+<?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.
+-->
+<resources xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+ <string name="application_name" msgid="4119979710394894209">"Live Wallpaper Picker"</string>
+ <!-- no translation found for live_wallpaper_picker_title (6161053357728149149) -->
+ <skip />
+ <string name="live_wallpaper_preview_title" msgid="1130080613611954763">"Pré-visualização da imagem de fundo activa"</string>
+ <string name="configure_wallpaper" msgid="7396598925806288258">"Definições…"</string>
+ <string name="wallpaper_instructions" msgid="4215640646180727542">"Definir imagem de fundo"</string>
+ <string name="live_wallpaper_empty" msgid="4278728108785853407">"Não há imagens de fundo em directo."</string>
+ <string name="set_live_wallpaper" msgid="2381437614949033266">"Definir imagem de fundo"</string>
+ <string name="wallpaper_title_and_author" msgid="8891734217843935304">"<xliff:g id="TITLE">%1$s</xliff:g> de <xliff:g id="AUTHOR">%2$s</xliff:g>"</string>
+ <!-- no translation found for live_wallpaper_loading (2488371303130330734) -->
+ <skip />
+</resources>
diff --git a/res/values-pt/strings.xml b/res/values-pt/strings.xml
new file mode 100644
index 0000000..4e268fd
--- /dev/null
+++ b/res/values-pt/strings.xml
@@ -0,0 +1,29 @@
+<?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.
+-->
+<resources xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+ <string name="application_name" msgid="4119979710394894209">"Selecionador de plano de fundo ativo"</string>
+ <!-- no translation found for live_wallpaper_picker_title (6161053357728149149) -->
+ <skip />
+ <string name="live_wallpaper_preview_title" msgid="1130080613611954763">"Visualização do plano de fundo ativo"</string>
+ <string name="configure_wallpaper" msgid="7396598925806288258">"Configurações…"</string>
+ <string name="wallpaper_instructions" msgid="4215640646180727542">"Definir papel de parede"</string>
+ <string name="live_wallpaper_empty" msgid="4278728108785853407">"Não há planos de fundo ativos."</string>
+ <string name="set_live_wallpaper" msgid="2381437614949033266">"Definir plano de fundo"</string>
+ <string name="wallpaper_title_and_author" msgid="8891734217843935304">"<xliff:g id="TITLE">%1$s</xliff:g> por <xliff:g id="AUTHOR">%2$s</xliff:g>"</string>
+ <!-- no translation found for live_wallpaper_loading (2488371303130330734) -->
+ <skip />
+</resources>
diff --git a/res/values-ru/strings.xml b/res/values-ru/strings.xml
new file mode 100644
index 0000000..96ee0ad
--- /dev/null
+++ b/res/values-ru/strings.xml
@@ -0,0 +1,27 @@
+<?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.
+-->
+<resources xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+ <string name="application_name" msgid="4119979710394894209">"Live Wallpaper Picker"</string>
+ <string name="live_wallpaper_picker_title" msgid="6161053357728149149">"Анимированные фоновые рисунки"</string>
+ <string name="live_wallpaper_preview_title" msgid="1130080613611954763">"Предварительный просмотр анимированного фонового рисунка"</string>
+ <string name="configure_wallpaper" msgid="7396598925806288258">"Настройки…"</string>
+ <string name="wallpaper_instructions" msgid="4215640646180727542">"Установить обои"</string>
+ <string name="live_wallpaper_empty" msgid="4278728108785853407">"Анимированные фоновые рисунки отсутствуют."</string>
+ <string name="set_live_wallpaper" msgid="2381437614949033266">"Установить фоновый рисунок"</string>
+ <string name="wallpaper_title_and_author" msgid="8891734217843935304">"<xliff:g id="TITLE">%1$s</xliff:g>, автор: <xliff:g id="AUTHOR">%2$s</xliff:g>"</string>
+ <string name="live_wallpaper_loading" msgid="2488371303130330734">"Загрузка анимированного фонового рисунка…"</string>
+</resources>
diff --git a/res/values-sv/strings.xml b/res/values-sv/strings.xml
new file mode 100644
index 0000000..160ae89
--- /dev/null
+++ b/res/values-sv/strings.xml
@@ -0,0 +1,27 @@
+<?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.
+-->
+<resources xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+ <string name="application_name" msgid="4119979710394894209">"Live Wallpaper Picker"</string>
+ <string name="live_wallpaper_picker_title" msgid="6161053357728149149">"Rörliga bakgrunder"</string>
+ <string name="live_wallpaper_preview_title" msgid="1130080613611954763">"Förhandsgranskning av rörlig bakgrund"</string>
+ <string name="configure_wallpaper" msgid="7396598925806288258">"Inställningar…"</string>
+ <string name="wallpaper_instructions" msgid="4215640646180727542">"Ange bakgrund"</string>
+ <string name="live_wallpaper_empty" msgid="4278728108785853407">"Inga live-bakgrunder."</string>
+ <string name="set_live_wallpaper" msgid="2381437614949033266">"Ange bakgrund"</string>
+ <string name="wallpaper_title_and_author" msgid="8891734217843935304">"<xliff:g id="TITLE">%1$s</xliff:g> av <xliff:g id="AUTHOR">%2$s</xliff:g>"</string>
+ <string name="live_wallpaper_loading" msgid="2488371303130330734">"Läser in bakgrund…"</string>
+</resources>
diff --git a/res/values-tr/strings.xml b/res/values-tr/strings.xml
new file mode 100644
index 0000000..913f299
--- /dev/null
+++ b/res/values-tr/strings.xml
@@ -0,0 +1,27 @@
+<?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.
+-->
+<resources xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+ <string name="application_name" msgid="4119979710394894209">"Canlı Duvar Kağıdı Seçicisi"</string>
+ <string name="live_wallpaper_picker_title" msgid="6161053357728149149">"Canlı duvar kağıtları"</string>
+ <string name="live_wallpaper_preview_title" msgid="1130080613611954763">"Canlı duvar kağıdı önizlemesi"</string>
+ <string name="configure_wallpaper" msgid="7396598925806288258">"Ayarlar…"</string>
+ <string name="wallpaper_instructions" msgid="4215640646180727542">"Duvar kağıdını ayarla"</string>
+ <string name="live_wallpaper_empty" msgid="4278728108785853407">"Canlı duvar kağıdı yok."</string>
+ <string name="set_live_wallpaper" msgid="2381437614949033266">"Duvar kağıdını ayarla"</string>
+ <string name="wallpaper_title_and_author" msgid="8891734217843935304">"<xliff:g id="TITLE">%1$s</xliff:g> Oluşturan: <xliff:g id="AUTHOR">%2$s</xliff:g>"</string>
+ <string name="live_wallpaper_loading" msgid="2488371303130330734">"Canlı duvar kağıdı yükleniyor…"</string>
+</resources>
diff --git a/res/values-zh-rCN/strings.xml b/res/values-zh-rCN/strings.xml
new file mode 100644
index 0000000..711d812
--- /dev/null
+++ b/res/values-zh-rCN/strings.xml
@@ -0,0 +1,27 @@
+<?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.
+-->
+<resources xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+ <string name="application_name" msgid="4119979710394894209">"动态壁纸选择器"</string>
+ <string name="live_wallpaper_picker_title" msgid="6161053357728149149">"当前壁纸"</string>
+ <string name="live_wallpaper_preview_title" msgid="1130080613611954763">"当前壁纸预览"</string>
+ <string name="configure_wallpaper" msgid="7396598925806288258">"设置..."</string>
+ <string name="wallpaper_instructions" msgid="4215640646180727542">"设置壁纸"</string>
+ <string name="live_wallpaper_empty" msgid="4278728108785853407">"无当前壁纸。"</string>
+ <string name="set_live_wallpaper" msgid="2381437614949033266">"设置壁纸"</string>
+ <string name="wallpaper_title_and_author" msgid="8891734217843935304">"<xliff:g id="TITLE">%1$s</xliff:g>提供者:<xliff:g id="AUTHOR">%2$s</xliff:g>"</string>
+ <string name="live_wallpaper_loading" msgid="2488371303130330734">"正在载入当前壁纸…"</string>
+</resources>
diff --git a/res/values-zh-rTW/strings.xml b/res/values-zh-rTW/strings.xml
new file mode 100644
index 0000000..2348596
--- /dev/null
+++ b/res/values-zh-rTW/strings.xml
@@ -0,0 +1,27 @@
+<?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.
+-->
+<resources xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+ <string name="application_name" msgid="4119979710394894209">"即時桌布挑選器"</string>
+ <string name="live_wallpaper_picker_title" msgid="6161053357728149149">"即時桌布"</string>
+ <string name="live_wallpaper_preview_title" msgid="1130080613611954763">"即時桌布預覽"</string>
+ <string name="configure_wallpaper" msgid="7396598925806288258">"設定..."</string>
+ <string name="wallpaper_instructions" msgid="4215640646180727542">"設定桌布"</string>
+ <string name="live_wallpaper_empty" msgid="4278728108785853407">"沒有即時桌布。"</string>
+ <string name="set_live_wallpaper" msgid="2381437614949033266">"設定桌布"</string>
+ <string name="wallpaper_title_and_author" msgid="8891734217843935304">"<xliff:g id="TITLE">%1$s</xliff:g> 製作者:<xliff:g id="AUTHOR">%2$s</xliff:g>"</string>
+ <string name="live_wallpaper_loading" msgid="2488371303130330734">"正在載入即時桌布..."</string>
+</resources>
diff --git a/res/values/colors.xml b/res/values/colors.xml
new file mode 100644
index 0000000..d49e104
--- /dev/null
+++ b/res/values/colors.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+/*
+* copyright (c) 2008 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.
+*/
+-->
+
+<resources>
+ <color name="live_wallpaper_thumbnail_background">#CC666666</color>
+ <color name="live_wallpaper_thumbnail_text_color">#FFFFFFFF</color>
+</resources>
+
diff --git a/res/values/dimensions.xml b/res/values/dimensions.xml
new file mode 100644
index 0000000..d0ee3a6
--- /dev/null
+++ b/res/values/dimensions.xml
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+/*
+* copyright (c) 2008 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.
+*/
+-->
+
+<resources>
+ <dimen name="live_wallpaper_thumbnail_text_size">14dip</dimen>
+ <dimen name="live_wallpaper_thumbnail_text_offset">12dip</dimen>
+ <dimen name="live_wallpaper_thumbnail_width">75dip</dimen>
+ <dimen name="live_wallpaper_thumbnail_height">75dip</dimen>
+</resources>
diff --git a/res/values/strings.xml b/res/values/strings.xml
new file mode 100644
index 0000000..c070c61
--- /dev/null
+++ b/res/values/strings.xml
@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+/*
+* Copyright (C) 2008 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.
+*/
+-->
+
+<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+ <!-- General -->
+ <skip />
+ <!-- Application name -->
+ <string name="application_name">Live Wallpaper Picker</string>
+ <!-- Title for the screen that lets the user choose a live wallpaper to use
+ for the system. -->
+ <string name="live_wallpaper_picker_title">Live wallpapers</string>
+ <!-- Title for the screen that lets the user preview a live wallpaper. -->
+ <string name="live_wallpaper_preview_title">Live wallpaper preview</string>
+ <!-- List item for configuring the current wallpaper -->
+ <string name="configure_wallpaper">Settings…</string>
+ <!-- Button label on Wallpaper Gallery screen; user selects this button to set a specific wallpaper -->
+ <string name="wallpaper_instructions">Set wallpaper</string>
+ <!-- Warning message, no live wallpapers available. -->
+ <string name="live_wallpaper_empty">No live wallpapers.</string>
+ <!-- Button label, action, sets the currently selected wallpaper. -->
+ <string name="set_live_wallpaper">Set wallpaper</string>
+ <!-- Label, title and author of the live wallpaper -->
+ <string name="wallpaper_title_and_author"><xliff:g id="title" example="Galaxy">%1$s</xliff:g> by <xliff:g id="author" example="Google">%2$s</xliff:g></string>
+ <!-- Message, tells the user the selected live wallpaper is loading. -->
+ <string name="live_wallpaper_loading">Loading live wallpaper…</string>
+
+</resources>
diff --git a/res/values/styles.xml b/res/values/styles.xml
new file mode 100644
index 0000000..a55fbdb
--- /dev/null
+++ b/res/values/styles.xml
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+/*
+* Copyright (C) 2008 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.
+*/
+-->
+
+<resources>
+ <style name="WallpaperTitle">
+ <item name="android:textSize">20dip</item>
+ <item name="android:shadowColor">#FF000000</item>
+ <item name="android:shadowRadius">2.5</item>
+ <item name="android:shadowDx">0</item>
+ <item name="android:shadowDy">0</item>
+ <item name="android:textColor">#FFFFFFFF</item>
+ <item name="android:gravity">left</item>
+ </style>
+
+ <style name="Preview" parent="@android:style/Theme.NoTitleBar">
+ <item name="android:windowBackground">@android:color/transparent</item>
+ <item name="android:colorBackgroundCacheHint">@null</item>
+ <item name="android:windowAnimationStyle">@android:style/Animation.Activity</item>
+ </style>
+</resources>
diff --git a/src/com/android/wallpaper/livepicker/LiveWallpaperListActivity.java b/src/com/android/wallpaper/livepicker/LiveWallpaperListActivity.java
new file mode 100644
index 0000000..8b0ad89
--- /dev/null
+++ b/src/com/android/wallpaper/livepicker/LiveWallpaperListActivity.java
@@ -0,0 +1,236 @@
+/*
+ * 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.
+ */
+
+package com.android.wallpaper.livepicker;
+
+import android.app.ListActivity;
+import android.app.WallpaperInfo;
+import android.os.Bundle;
+import android.content.pm.PackageManager;
+import android.content.pm.ResolveInfo;
+import android.content.pm.ComponentInfo;
+import android.content.Intent;
+import android.content.res.Resources;
+import android.graphics.drawable.Drawable;
+import android.graphics.drawable.BitmapDrawable;
+import android.graphics.Paint;
+import android.graphics.Canvas;
+import android.graphics.Bitmap;
+import android.util.Log;
+import android.view.Gravity;
+import android.view.View;
+import android.view.ViewGroup;
+import android.view.LayoutInflater;
+import android.service.wallpaper.WallpaperService;
+import android.widget.BaseAdapter;
+import android.widget.TextView;
+import android.widget.ImageView;
+import android.widget.AdapterView;
+import android.text.Html;
+
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Collections;
+import java.util.Comparator;
+import java.io.IOException;
+import java.text.Collator;
+
+import org.xmlpull.v1.XmlPullParserException;
+
+public class LiveWallpaperListActivity extends ListActivity implements AdapterView.OnItemClickListener {
+ private static final String LOG_TAG = "LiveWallpapersPicker";
+
+ private static final int REQUEST_PREVIEW = 100;
+
+ private PackageManager mPackageManager;
+
+ private ArrayList<Drawable> mThumbnails;
+ private ArrayList<WallpaperInfo> mWallpaperInfos;
+ private ArrayList<Intent> mWallpaperIntents;
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.live_wallpaper_list);
+
+ mPackageManager = getPackageManager();
+
+ findLiveWallpapers();
+
+ setListAdapter(new LiveWallpapersAdapter());
+ getListView().setOnItemClickListener(this);
+ }
+
+ // TODO: THIS SHOULD HAPPEN IN AN ASYNCTASK
+ private void findLiveWallpapers() {
+ List<ResolveInfo> list = mPackageManager.queryIntentServices(
+ new Intent(WallpaperService.SERVICE_INTERFACE),
+ PackageManager.GET_META_DATA);
+
+ int listSize = list.size();
+
+ mThumbnails = new ArrayList<Drawable>(listSize);
+ mWallpaperIntents = new ArrayList<Intent>(listSize);
+ mWallpaperInfos = new ArrayList<WallpaperInfo>(listSize);
+
+ Resources res = getResources();
+ Drawable galleryIcon = res.getDrawable(R.drawable.livewallpaper_placeholder);
+
+ Paint paint = new Paint(Paint.ANTI_ALIAS_FLAG | Paint.DITHER_FLAG);
+ paint.setTextAlign(Paint.Align.CENTER);
+
+ Canvas canvas = new Canvas();
+
+ Collections.sort(list, new Comparator<ResolveInfo>() {
+ final Collator mCollator;
+
+ {
+ mCollator = Collator.getInstance();
+ }
+
+ public int compare(ResolveInfo info1, ResolveInfo info2) {
+ return mCollator.compare(info1.loadLabel(mPackageManager),
+ info2.loadLabel(mPackageManager));
+ }
+ });
+
+ for (int i = 0; i < listSize; i++) {
+ ResolveInfo resolveInfo = list.get(i);
+ ComponentInfo ci = resolveInfo.serviceInfo;
+ WallpaperInfo info;
+ try {
+ info = new WallpaperInfo(this, resolveInfo);
+ } catch (XmlPullParserException e) {
+ Log.w(LOG_TAG, "Skipping wallpaper " + ci, e);
+ continue;
+ } catch (IOException e) {
+ Log.w(LOG_TAG, "Skipping wallpaper " + ci, e);
+ continue;
+ }
+
+ String packageName = info.getPackageName();
+ String className = info.getServiceName();
+
+ Intent intent = new Intent(WallpaperService.SERVICE_INTERFACE);
+ intent.setClassName(packageName, className);
+
+ mWallpaperIntents.add(intent);
+ mWallpaperInfos.add(info);
+
+ Drawable thumb = info.loadThumbnail(mPackageManager);
+ if (thumb == null) {
+ int thumbWidth = res.getDimensionPixelSize(R.dimen.live_wallpaper_thumbnail_width);
+ int thumbHeight = res.getDimensionPixelSize(R.dimen.live_wallpaper_thumbnail_height);
+
+ Bitmap thumbnail = Bitmap.createBitmap(thumbWidth, thumbHeight,
+ Bitmap.Config.ARGB_8888);
+
+ paint.setColor(res.getColor(R.color.live_wallpaper_thumbnail_background));
+ canvas.setBitmap(thumbnail);
+ canvas.drawPaint(paint);
+
+ galleryIcon.setBounds(0, 0, thumbWidth, thumbHeight);
+ ((BitmapDrawable) galleryIcon).setGravity(Gravity.CENTER);
+ galleryIcon.draw(canvas);
+
+ String title = info.loadLabel(mPackageManager).toString();
+
+ paint.setColor(res.getColor(R.color.live_wallpaper_thumbnail_text_color));
+ paint.setTextSize(
+ res.getDimensionPixelSize(R.dimen.live_wallpaper_thumbnail_text_size));
+
+ canvas.drawText(title, (int) (thumbWidth * 0.5),
+ thumbHeight - res.getDimensionPixelSize(
+ R.dimen.live_wallpaper_thumbnail_text_offset), paint);
+
+ thumb = new BitmapDrawable(res, thumbnail);
+ }
+
+ thumb.setDither(true);
+ mThumbnails.add(thumb);
+ }
+ }
+
+ @Override
+ protected void onActivityResult(int requestCode, int resultCode, Intent data) {
+ super.onActivityResult(requestCode, resultCode, data);
+
+ if (requestCode == REQUEST_PREVIEW) {
+ if (resultCode == RESULT_OK) finish();
+ }
+ }
+
+ public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
+ final Intent intent = mWallpaperIntents.get(position);
+ final WallpaperInfo info = mWallpaperInfos.get(position);
+ LiveWallpaperPreview.showPreview(this, REQUEST_PREVIEW, intent, info);
+ }
+
+ static class ViewHolder {
+ TextView titleAuthor;
+ TextView description;
+ ImageView thumbnail;
+ }
+
+ private class LiveWallpapersAdapter extends BaseAdapter {
+ private final LayoutInflater mInflater;
+
+ LiveWallpapersAdapter() {
+ mInflater = LayoutInflater.from(LiveWallpaperListActivity.this);
+ }
+
+ public int getCount() {
+ return mWallpaperInfos.size();
+ }
+
+ public Object getItem(int position) {
+ return mWallpaperInfos.get(position);
+ }
+
+ public long getItemId(int position) {
+ return position;
+ }
+
+ public View getView(int position, View convertView, ViewGroup parent) {
+ ViewHolder holder;
+ if (convertView == null) {
+ convertView = mInflater.inflate(R.layout.live_wallpaper_entry, parent, false);
+
+ holder = new ViewHolder();
+ holder.titleAuthor = (TextView) convertView.findViewById(R.id.title_author);
+ holder.description = (TextView) convertView.findViewById(R.id.description);
+ holder.thumbnail = (ImageView) convertView.findViewById(R.id.thumbnail);
+ convertView.setTag(holder);
+ } else {
+ holder = (ViewHolder) convertView.getTag();
+ }
+
+ WallpaperInfo info = mWallpaperInfos.get(position);
+ holder.thumbnail.setImageDrawable(mThumbnails.get(position));
+ // author not currently used
+ holder.titleAuthor.setText(info.loadLabel(mPackageManager));
+ try {
+ holder.description.setVisibility(View.VISIBLE);
+ holder.description.setText(Html.fromHtml(
+ info.loadDescription(mPackageManager).toString()));
+ } catch (Resources.NotFoundException e) {
+ holder.description.setVisibility(View.GONE);
+ }
+
+ return convertView;
+ }
+ }
+}
diff --git a/src/com/android/wallpaper/livepicker/LiveWallpaperPreview.java b/src/com/android/wallpaper/livepicker/LiveWallpaperPreview.java
new file mode 100644
index 0000000..f63d5a0
--- /dev/null
+++ b/src/com/android/wallpaper/livepicker/LiveWallpaperPreview.java
@@ -0,0 +1,288 @@
+/*
+ * 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.
+ */
+
+package com.android.wallpaper.livepicker;
+
+import android.app.Activity;
+import android.app.WallpaperManager;
+import android.app.WallpaperInfo;
+import android.app.Dialog;
+import android.service.wallpaper.IWallpaperConnection;
+import android.service.wallpaper.IWallpaperService;
+import android.service.wallpaper.IWallpaperEngine;
+import android.service.wallpaper.WallpaperSettingsActivity;
+import android.content.ServiceConnection;
+import android.content.Intent;
+import android.content.Context;
+import android.content.ComponentName;
+import android.os.RemoteException;
+import android.os.IBinder;
+import android.os.ParcelFileDescriptor;
+import android.os.Bundle;
+import android.view.MotionEvent;
+import android.view.View;
+import android.view.WindowManager;
+import android.view.ViewGroup;
+import android.view.Window;
+import android.view.LayoutInflater;
+import android.util.Log;
+import android.widget.TextView;
+
+public class LiveWallpaperPreview extends Activity {
+ static final String EXTRA_LIVE_WALLPAPER_INTENT = "android.live_wallpaper.intent";
+ static final String EXTRA_LIVE_WALLPAPER_SETTINGS = "android.live_wallpaper.settings";
+ static final String EXTRA_LIVE_WALLPAPER_PACKAGE = "android.live_wallpaper.package";
+
+ private static final String LOG_TAG = "LiveWallpaperPreview";
+
+ private WallpaperManager mWallpaperManager;
+ private WallpaperConnection mWallpaperConnection;
+
+ private String mSettings;
+ private String mPackageName;
+ private Intent mWallpaperIntent;
+ private View mView;
+ private Dialog mDialog;
+
+ static void showPreview(Activity activity, int code, Intent intent, WallpaperInfo info) {
+ Intent preview = new Intent(activity, LiveWallpaperPreview.class);
+ preview.putExtra(EXTRA_LIVE_WALLPAPER_INTENT, intent);
+ preview.putExtra(EXTRA_LIVE_WALLPAPER_SETTINGS, info.getSettingsActivity());
+ preview.putExtra(EXTRA_LIVE_WALLPAPER_PACKAGE, info.getPackageName());
+ activity.startActivityForResult(preview, code);
+ }
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+
+ Bundle extras = getIntent().getExtras();
+ mWallpaperIntent = (Intent) extras.get(EXTRA_LIVE_WALLPAPER_INTENT);
+ if (mWallpaperIntent == null) {
+ setResult(RESULT_CANCELED);
+ finish();
+ }
+
+ setContentView(R.layout.live_wallpaper_preview);
+ mView = findViewById(R.id.configure);
+
+ mSettings = extras.getString(EXTRA_LIVE_WALLPAPER_SETTINGS);
+ mPackageName = extras.getString(EXTRA_LIVE_WALLPAPER_PACKAGE);
+ if (mSettings == null) {
+ mView.setVisibility(View.GONE);
+ }
+
+ mWallpaperManager = WallpaperManager.getInstance(this);
+
+ mWallpaperConnection = new WallpaperConnection(mWallpaperIntent);
+ }
+
+ public void setLiveWallpaper(View v) {
+ try {
+ mWallpaperManager.getIWallpaperManager().setWallpaperComponent(
+ mWallpaperIntent.getComponent());
+ mWallpaperManager.setWallpaperOffsetSteps(0.5f, 0.0f);
+ mWallpaperManager.setWallpaperOffsets(v.getRootView().getWindowToken(), 0.5f, 0.0f);
+ setResult(RESULT_OK);
+ } catch (RemoteException e) {
+ // do nothing
+ } catch (RuntimeException e) {
+ Log.w(LOG_TAG, "Failure setting wallpaper", e);
+ }
+ finish();
+ }
+
+ @SuppressWarnings({"UnusedDeclaration"})
+ public void configureLiveWallpaper(View v) {
+ Intent intent = new Intent();
+ intent.setComponent(new ComponentName(mPackageName, mSettings));
+ intent.putExtra(WallpaperSettingsActivity.EXTRA_PREVIEW_MODE, true);
+ startActivity(intent);
+ }
+
+ @Override
+ public void onResume() {
+ super.onResume();
+ if (mWallpaperConnection != null && mWallpaperConnection.mEngine != null) {
+ try {
+ mWallpaperConnection.mEngine.setVisibility(true);
+ } catch (RemoteException e) {
+ // Ignore
+ }
+ }
+ }
+
+ @Override
+ public void onPause() {
+ super.onPause();
+ if (mWallpaperConnection != null && mWallpaperConnection.mEngine != null) {
+ try {
+ mWallpaperConnection.mEngine.setVisibility(false);
+ } catch (RemoteException e) {
+ // Ignore
+ }
+ }
+ }
+
+ @Override
+ public void onAttachedToWindow() {
+ super.onAttachedToWindow();
+
+ showLoading();
+
+ mView.post(new Runnable() {
+ public void run() {
+ if (!mWallpaperConnection.connect()) {
+ mWallpaperConnection = null;
+ }
+ }
+ });
+ }
+
+ private void showLoading() {
+ LayoutInflater inflater = LayoutInflater.from(this);
+ TextView content = (TextView) inflater.inflate(R.layout.live_wallpaper_loading, null);
+
+ mDialog = new Dialog(this, android.R.style.Theme_Black);
+
+ Window window = mDialog.getWindow();
+ WindowManager.LayoutParams lp = window.getAttributes();
+
+ lp.width = WindowManager.LayoutParams.FILL_PARENT;
+ lp.height = WindowManager.LayoutParams.FILL_PARENT;
+ window.setType(WindowManager.LayoutParams.TYPE_APPLICATION_MEDIA);
+
+ mDialog.setContentView(content, new ViewGroup.LayoutParams(
+ ViewGroup.LayoutParams.FILL_PARENT, ViewGroup.LayoutParams.FILL_PARENT
+ ));
+ mDialog.show();
+ }
+
+ @Override
+ public void onDetachedFromWindow() {
+ super.onDetachedFromWindow();
+
+ if (mDialog != null) mDialog.dismiss();
+
+ if (mWallpaperConnection != null) {
+ mWallpaperConnection.disconnect();
+ }
+ mWallpaperConnection = null;
+ }
+
+ @Override
+ public boolean dispatchTouchEvent(MotionEvent ev) {
+ if (mWallpaperConnection != null && mWallpaperConnection.mEngine != null) {
+ MotionEvent dup = MotionEvent.obtainNoHistory(ev);
+ try {
+ mWallpaperConnection.mEngine.dispatchPointer(dup);
+ } catch (RemoteException e) {
+ }
+ }
+
+ if (ev.getAction() == MotionEvent.ACTION_DOWN) {
+ onUserInteraction();
+ }
+ if (getWindow().superDispatchTouchEvent(ev)) {
+ return true;
+ }
+ return onTouchEvent(ev);
+ }
+
+ class WallpaperConnection extends IWallpaperConnection.Stub implements ServiceConnection {
+ final Intent mIntent;
+ IWallpaperService mService;
+ IWallpaperEngine mEngine;
+ boolean mConnected;
+
+ WallpaperConnection(Intent intent) {
+ mIntent = intent;
+ }
+
+ public boolean connect() {
+ synchronized (this) {
+ if (!bindService(mIntent, this, Context.BIND_AUTO_CREATE)) {
+ return false;
+ }
+
+ mConnected = true;
+ return true;
+ }
+ }
+
+ public void disconnect() {
+ synchronized (this) {
+ mConnected = false;
+ if (mEngine != null) {
+ try {
+ mEngine.destroy();
+ } catch (RemoteException e) {
+ // Ignore
+ }
+ mEngine = null;
+ }
+ unbindService(this);
+ mService = null;
+ }
+ }
+
+ public void onServiceConnected(ComponentName name, IBinder service) {
+ if (mWallpaperConnection == this) {
+ mService = IWallpaperService.Stub.asInterface(service);
+ try {
+ final View view = mView;
+ final View root = view.getRootView();
+ mService.attach(this, view.getWindowToken(),
+ WindowManager.LayoutParams.TYPE_APPLICATION_MEDIA_OVERLAY,
+ true, root.getWidth(), root.getHeight());
+ } catch (RemoteException e) {
+ Log.w(LOG_TAG, "Failed attaching wallpaper; clearing", e);
+ }
+ }
+ }
+
+ public void onServiceDisconnected(ComponentName name) {
+ mService = null;
+ mEngine = null;
+ if (mWallpaperConnection == this) {
+ Log.w(LOG_TAG, "Wallpaper service gone: " + name);
+ }
+ }
+
+ public void attachEngine(IWallpaperEngine engine) {
+ synchronized (this) {
+ if (mConnected) {
+ mEngine = engine;
+ try {
+ engine.setVisibility(true);
+ } catch (RemoteException e) {
+ // Ignore
+ }
+ } else {
+ try {
+ engine.destroy();
+ } catch (RemoteException e) {
+ // Ignore
+ }
+ }
+ }
+ }
+
+ public ParcelFileDescriptor setWallpaper(String name) {
+ return null;
+ }
+ }
+}