Android 更换系统壁纸

来源:互联网 发布:mccall软件质量模型 编辑:程序博客网 时间:2024/05/16 12:58

1: 在alps\packages\apps\Launcher2\res\drawable-mdpi下面

 default_wallpaper_small 为默认壁纸  wallpaper_01     wallpaper_01_small(想要增加自己的壁纸,必须写成此格式)wallpaper_02     wallpaper_02_smallwallpaper_03    wallpaper_03_small

……….. ……….. ………

2: 在alps\packages\apps\Launcher2\res\values目录下 打开这个文件 wallpapers.xml

<resources>    <string-array name="wallpapers" translatable="false">        <!-- This special drawable references the platform's private             default_wallpaper resource so the user can always choose it. -->             <!-- 下面为默认的壁纸 -->        <item>default_wallpaper</item>        <!-- If you want additional bitmap drawable resources to appear in the             wallpaper picker, add them to this list. For each foo.jpg be sure             to include a foo_small.jpg to be used as a thumbnail in the             scrolling gallery widget. -->         <!-- 下面为自己想要增加的壁纸 -->        <item>wallpaper_01</item>        <item>wallpaper_02</item>        <item>wallpaper_03</item>    </string-array></resources>
0 0