android替换默认壁纸并添加壁纸进壁纸库

1.更换默认壁纸

frameworks/base/core/res/res/drawable-sw720dp-nodpi/default_wallpaper.jpg

2.增加壁纸进壁纸库

packages/apps/Launcher2/res/drawable-sw720dp-nodpi/wallpaper_neon.jpg
packages/apps/Launcher2/res/drawable-sw720dp-nodpi/wallpaper_neon_small.jpg
packages/apps/Launcher2/res/values/extra_wallpapers.xml


diff --git a/packages/apps/Launcher2/res/values/extra_wallpapers.xml b/packages/apps/Launcher2/res/values/extra_wallpapers.xml
index 9e0951c..4d109a8 100644
--- a/packages/apps/Launcher2/res/values/extra_wallpapers.xml
+++ b/packages/apps/Launcher2/res/values/extra_wallpapers.xml
@@ -17,5 +17,6 @@
 
 <resources>
     <string-array name="extra_wallpapers">
+                       <item>wallpaper_neon</item>
     </string-array>
 </resources>
(END) 



你可能感兴趣的:(android替换默认壁纸并添加壁纸进壁纸库)