简体   繁体   English

如何制作动态壁纸Android

[英]How to Animate a Live Wallpaper Android

We are trying to develop a live wallpaper for Android phones, but when it comes to the animation part and the size of the APK we are a bit stuck. 我们正在尝试为Android手机开发动态壁纸,但是在动画部分和APK的大小方面,我们有些卡住了。

We tried Sprite animation and PNG frame by frame animation, both consumes large amounts of space (over 10MB for less than 2sec animation) in the phone due to the size of PNG images or Sprite stripes. 我们尝试了Sprite动画和逐帧PNG动画,由于PNG图像或Sprite条纹的尺寸,两者在手机中都占用了大量空间(不到2秒的动画需要10MB以上的空间)。

But I have seen some live wallpapers in the App Market which has amazing animations but the APK size is less than 1MB. 但是我在App Market上看到了一些动态壁纸,这些动态壁纸具有惊人的动画,但APK大小不到1MB。 Is there a way to achieve this? 有没有办法做到这一点? if so any assistance from anyone would be much appreciated. 如果是这样,将不胜感激。

Thanks in advance! 提前致谢!

As a first approach, I would suggest you to try the andengine platform and its livewallpaper extension (http://www.andengine.org/). 作为第一种方法,我建议您尝试使用andengine平台及其livewallpaper扩展(http://www.andengine.org/)。 Since the platform developers have dealt with lots of similiar issues, I think there is no reason for you to reivent the wheel. 由于平台开发人员已经处理了许多类似的问题,所以我认为您没有理由再费力气了。 AndEngine platform has many memory and speed optimization features, specially on the GLES2 release, and it is free and opensource. AndEngine平台具有许多内存和速度优化功能,尤其是在GLES2发行版上,它是免费和开源的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM