简体   繁体   English

是否可以在Android主屏幕上制作动画移动小部件?

[英]is it possible to make a animated moving widget on Android home-screen?

just want to ask a very basic technical question here about android. 只想问一个关于android的非常基本的技术问题。 well i just imagine if i can make a sort of application that doesn't run on activity, but running a Service to make some kind of screensaver widget that animated and moving object on home screen, probably like pacman eating the shortcuts. 好吧,我只是想像一下我是否可以制作一种不能在活动中运行的应用程序,而是运行一项服务来制作某种屏幕保护程序小部件,该小部件可以在主屏幕上进行动画处理并移动对象,就像吃吃快捷键的pacman一样。 is it possible? 可能吗?

Looked into this a while back. 回望了一下。 There is a Mario hitting a coin example floating around that does this ( https://code.google.com/p/mario-coin-block/ ). 有马里奥(Mario)碰到一个硬币示例( https://code.google.com/p/mario-coin-block/ )。 However, from everything I've read it is very hacky and likely to have horrible performance/battery drain. 但是,从我读过的所有文章来看,它都是很骇人的,并且可能会造成可怕的性能/电池消耗。

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

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