Android的动态壁纸

Android的动态壁纸

本文介绍了Android的动态壁纸指导的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当谈到使Android的动态壁纸,什么是被完全需要的东西。到目前为止,我可以GIST为WallpaperService.Engine,SurfaceView,在Android.manifest和XML / string.xml除了这一个PNG drawble一些重大变化(我想如果我用的油漆,这可能是可选)。

When it comes to making Android live wallpaper, what are the things that are exactly needed. So far I could gist as WallpaperService.Engine, SurfaceView, some major changes in Android.manifest and xml/string.xml apart from this one png drawble (i think this may be optional if i use paint).

和还有什么我需要开发完全不同的逻辑动画出现呢?是用数学计算总?我非常热衷于做不同种类的动态壁纸。但我不是在正确的轨道上,我认为。

And what else do I need to develop whole different logic for the animation to happen? is it with mathematical calculations always? I am very keen about making different kind of live wallpaper. but i am not in the right track i think.

请给我建议一些出路,以正确的方向,总结我什么,我需要的,这样我可以进行任何形式的动态壁纸。

Please suggest me some way out to right direction summarizing me what all i need so that i can make any kind of live wallpaper.

有人可以请总结一下所有需要的实况墙纸。

Can somebody please summarize what all is needed for live wall paper.

在此先感谢。

推荐答案

是的,你需要使用不同的方法动态壁纸比正常的动画机器人。标准的做法是做一个自我重新安排可运行,吸引到画布上。

Yes, you need to use a different approach for live wallpaper than "normal" animation in Android. The standard approach is to make a self-rescheduling runnable that draws to canvas.

在回答您的具体问题之一:不,你并不需要限制自己的数学计算;你可以使用位图/精灵如果你选择,但你仍需要自行动画。

In answer to one of your specific questions: no, you do not need to limit yourself to mathematical calculations; you can use bitmaps/sprites if you choose, but you will need to animate them yourself.

开始你的最好的地方是在SDK中的资源:
http://developer.android.com/resources/articles/live-wallpapers.html
http://developer.android.com/resources/samples/CubeLiveWallpaper/index.html

Your best place to start is the resources in the SDK:
http://developer.android.com/resources/articles/live-wallpapers.html
http://developer.android.com/resources/samples/CubeLiveWallpaper/index.html

这篇关于Android的动态壁纸指导的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-31 15:41