Android xml 的动态壁纸
是否可以在动态壁纸中使用 xml 布局。我花了无数个小时尝试编码。还阅读了大量的书籍和日志。但仍然没有答案
Is it possible to use xml layouts in live wallpapers. I have spent countless hours trying to code. Have also read numerous books and logs. But still no answer
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
动态壁纸必须使用 Surface 和 Canvas API。您可以尝试从 XML 和 draw() 将它们绘制到画布上,但这可能比它的价值更麻烦。
A live wallpaper must do all of its drawing using the Surface and Canvas APIs. You could try to inflate some Views from XML and draw() them to a Canvas but it's probably more trouble than it's worth.