关于Android开关机动画 » 荒野无灯weblog

Keep It Simple, Stupid.

荒野无灯weblog

关于Android开关机动画

以下是DroidCyex_bootanimation 的desc.txt 文件内容,这个文件中有注释,我就不再述了:

# 320 wide, 480 high, 15 frames a second
320 480 15

# p means we're defining a part
# first number is repeat count, 0 means infinite
# second number is delay in frames before performing the next part
# so if you are playing 15 frames a second 15 would be... one second
# string defines the directory to load files from
# files will be loaded in order but names don't matter

# s defines a sound for a part
# sounds will be loaded from /system/media
# oggs with loop points will loop automatically
# only one sound will play at a time
# timing is driven by the part, not the sounds
# if you want no sound, say nothing

# logo 
p 1 0 logo

# droid
p 1 0 droid

# spin forever
p 0 0 spin

# must have newline after each part

通过上面的文件可知:
动画实际上是由desc.txt描述文件及相应目录下的一些连惯图片构成的。根据desc.txt来决定这些图片要如何显示。
然后,把desc.txt及相关目录打包成zip文档。注意:在压缩时一定要选择“存储”方式,不然android不会买账的(我因为这个重启了N次手机)。

这是我修改自cm论坛的一个关机动画:
Blood_Moon_shutdownanimation

一些资源(有些不是zip格式的,需要自己处理):
http://forum.xda-developers.com/showthread.php?t=1532466
http://rootzwiki.com/topic/2585-boot-animations-boot-animation-collection-updated-011512/

Tagged in : android,shutdownanimation,bootanimation

All Comments (0)
Gravatar image
No Comments