OSDN Git Service

Adding wallpaper picker preview
authorAdam Cohen <adamcohen@google.com>
Wed, 19 Jan 2011 01:27:00 +0000 (17:27 -0800)
committerAdam Cohen <adamcohen@google.com>
Wed, 19 Jan 2011 04:37:35 +0000 (20:37 -0800)
Change-Id: Ib3a10bb02b249f71265fe04b3829465a77fb4a9f

AndroidManifest.xml
res/drawable/wallpaper_picker_preview.png [new file with mode: 0644]
res/xml/wallpaper_picker_preview.xml [new file with mode: 0644]

index 6cdf205..f9750ca 100644 (file)
@@ -95,6 +95,8 @@
                 <action android:name="android.intent.action.SET_WALLPAPER" />
                 <category android:name="android.intent.category.DEFAULT" />
             </intent-filter>
+            <meta-data android:name="android.wallpaper.preview"
+                android:resource="@xml/wallpaper_picker_preview" />
         </activity>
 
         <!-- Intent received used to install shortcuts from other applications -->
diff --git a/res/drawable/wallpaper_picker_preview.png b/res/drawable/wallpaper_picker_preview.png
new file mode 100644 (file)
index 0000000..926a99c
Binary files /dev/null and b/res/drawable/wallpaper_picker_preview.png differ
diff --git a/res/xml/wallpaper_picker_preview.xml b/res/xml/wallpaper_picker_preview.xml
new file mode 100644 (file)
index 0000000..d52e0e0
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2011 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.
+-->
+
+<wallpaper-preview
+    xmlns:android="http://schemas.android.com/apk/res/android"
+    android:staticWallpaperPreview="@drawable/wallpaper_picker_preview">
+</wallpaper-preview>
\ No newline at end of file