反编译准备好的SystemUl.apk成功得到SystemUl_src文件夹,用re管理器打开
进入SystemUl_src/res/drawable新建一个文件命名为background_animation.xml
写入以下代码
<?xml version="1.0" encoding="utf-8"?>
<animation-list android:oneshot="false"
xmlns:android="
http://schemas.android.com/apk/res/android ">
<item android:duration="250" android:drawable="@drawable/yy01" />
<item android:duration="250" android:drawable="@drawable/yy02" />
<item android:duration="250" android:drawable="@drawable/yy03" />
<item android:duration="250" android:drawable="@drawable/yy04" />
<item android:duration="250" android:drawable="@drawable/yy05" />
</animation-list>
代码说明一下, duration为播放间隔时间,drawable后面写上你制作的图片,注意顺序。 oneshot="false"一直播放,true只播放一次并停留在最后一张。
打开SystemUi_src\res\layout\status_bar_tracking.xml ,在com.android.systemui.statusbar.phone.TrackingView 这一段内添加:
android:background="@drawable/background_animation"
注意空格
完成后保存并退出,记得删除备份文件…因为 background_animation.xml内容里代码为五张图片,所以要准备五张大小和你手机分辨率的png图片,命名自己改,但记得要和代码里的一致
将准备好的图片复制到SystemUl_src/res/drawable-