Android动态壁纸与小部件交互并告诉壁纸小部件放置的位置

发布于 2024-09-28 13:03:50 字数 144 浏览 0 评论 0原文

动态壁纸中是否有功能可以让服务了解小部件在主屏幕上的位置以及小部件的大小?例如,如果我创建了一个根据小部件位置更改的动态壁纸,这可能吗?

另外,我想制作一个带有操作动态壁纸的按钮的小部件,我会为此使用意图服务吗?或者通过小部件与动态壁纸交互的最佳方式是什么?

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

国粹 2024-10-05 13:03:50

壁纸与绘图小部件无关。现在有一种方法可以让动态壁纸感知主屏幕对象,而无需修改固件或可能制作自己的主屏幕

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文