Android开机动画压缩包zip,自制开机动画
1.Android加载压缩包原理
这里有个md文件我们看下
核心部分,
首先要创建一个文件叫做desc.txt,这是规定的,
## desc.txt format
The first line defines the general parameters of the animation:
//宽高,fps帧率
WIDTH HEIGHT FPS
* **WIDTH:** animation width (pixels)
* **HEIGHT:** animation height (pixels)
* **FPS:** frames per second, e.g. 60
It is followed by a number of rows of the form:
//TYPE 是一个字符 ,是一个格式,COUNT多少次要运行bootanimation PAUSE是否延迟暂停一帧,PATH 0-4
//TYPE COUNT PAUSE PATH这四个参数都要写上
TYPE COUNT PAUSE PATH [#RGBHEX [CLOCK1 [CLOCK2]]]
* **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&