0
我是Android的新手。我只知道android的基础知识,我正在开发一个动态壁纸应用程序!我经历了developer.android.com。但我没有得到' 如果你建议我如何用一个项目做到这一点,我会非常感谢!我无法在我的动态壁纸上添加触摸事件
我是Android的新手。我只知道android的基础知识,我正在开发一个动态壁纸应用程序!我经历了developer.android.com。但我没有得到' 如果你建议我如何用一个项目做到这一点,我会非常感谢!我无法在我的动态壁纸上添加触摸事件
的android.service.wallpaper.WallpaperService.Engine
onTouchEvent() - called when the user performs touch-screen interaction with the window that is showing the wallpaper
onCommand() – called to process a command
反应触摸事件,简单地实现onTouchEvent()
。最后,应用程序可以发送任意命令到动态壁纸。目前,只有标准的家庭应用发送命令到onCommand()
方法现场壁纸:
对下面的教程
看看