Android动态壁纸与小部件交互并告诉壁纸小部件放置的位置
动态壁纸中是否有功能可以让服务了解小部件在主屏幕上的位置以及小部件的大小?例如,如果我创建了一个根据小部件位置更改的动态壁纸,这可能吗?
另外,我想制作一个带有操作动态壁纸的按钮的小部件,我会为此使用意图服务吗?或者通过小部件与动态壁纸交互的最佳方式是什么?
Is there functionality in teh live Wallpaper for the service to know where widgets are placed on the homescreen and the size of the widgets? For instance If I created a Live Wallpaper that changed based on widget position is that possible?
Also I want to make a widget with buttons that manipulate the live wallpaper, would I use the Intent Service for this? or what is the best way to interact with a live wallpaper through a widget?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
壁纸与绘图小部件无关。现在有一种方法可以让动态壁纸感知主屏幕对象,而无需修改固件或可能制作自己的主屏幕
The wallpaper has nothing to do with drawing widgets. There is now way to make a livewallpaper aware of homescreen objects without modifying the firmware or possibly making your own homescreen