如何在 android 动态壁纸中启用 android.wallpaper.tap 选项?
我创建了一个示例动态壁纸应用程序,我的要求是动态壁纸具有水的外观(水面)。当我触摸屏幕上的任何表面时,水必须排斥。我在开发者网站上对此进行了研究,最后我得到了关键字 android.wallpaper.tap
用于此目的,现在我不知道如何使用它。另外,我需要启用此功能的动态壁纸教程是代码片段,如果有人知道这一点,请发布它。提前致谢,
I create a sample Live wallpaper application, My requirement is, the Live-wallpaper have a water look (Water Surface). when i touch any surface on the screen the water must repel. I go through regarding this in developer site, finally i got the key word android.wallpaper.tap
is used for this purpose, now i doesn't know how to use this. Also i need this functionality enabled live wallpaper tutorials are code snippet if any one know this, kindly post it. Thanks in advance,
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
以下是从 libgdx 动态壁纸后端 (WallpaperService.Engine );
我自己从未尝试过这一点,但只要您不断接收这些事件,使用
Engine.onCommand
方法应该相当简单。Here's a code snippet borrowed from libgdx live wallpaper backend (WallpaperService.Engine);
I've never tried this myself but would expect utilizing
Engine.onCommand
method should be rather straightforward as long as you keep receiving these events.