Android开机动画修改
1、如何修改开机动画
其实就是修改bootanimation.zip
开机动画的文件主要是bootanimation.zip这个压缩包
播放开机动画的核心代码,位于 [frameworks/base/cmds/bootanimation/BootAnimation.cpp] 中
bootanimation压缩包里面包含着每一组播放动画的图片和desc.txt
2、desc.txt文件格式
(1)第一行是填写三个参数分辨率和帧率
WIDTH: animation width (pixels)
HEIGHT: animation height (pixels)
FPS: frames per second, e.g. 60
(2)接下来的第n行
第一位*TYPE: a single char indicating what type of animation segment this is:
p – this part will play unless interrupted by the end of the boot (系统一旦完成启动,
立即结束动画)
c – this part will play to completion, no matter what (无论发生什么,都会一直播放动
画)
第二位表示part1部分也就是包含图片的文件夹播放次数,第三位表示这部分播完后下部分开始的
间隔,默认为0,第四位表示文件夹名称
第三位同上但是第二位的0表示循环播放
例子
在编写完你所需要的设置后,最后一行要换行,切记,否则系统无法读取开机广告
- 1
- 2
前往页