2、使用WallpaperManager的setBitmap(Bitmap bitmap)方法
3、重写ContextWrapper 类中提供的setWallpaper()
4.传入9张自己喜欢的图片,命名image1-image9
<RelativeLayout xmlns:android=“http://schemas.android.com/apk/res/android”
xmlns:tools=“http://schemas.android.com/tools”
android:layout_width=“fill_parent”
android:layout_height=“fill_parent”
android:orientation=“vertical”
android:background="#000000"
tools:context=".MainActivity" >
<ImageSwitcher
android:id="@+id/ImageSwitcher"
android:layout_width=“fill_parent”
android:layout_height=“370dp”>
<Gallery
android:id="@+id/Gallery"
android:layout_width=“fill_parent”
android:layout_height=“80dp”
<