远程查看和非基本操作
我从 Android 小部件开始,我想知道如何对小部件视图进行“复杂”调用,例如对 ImageView 应用矩阵转换。
可以这样做吗?我应该使用 RemoteViews 类吗?谢谢
I'm starting with Android widgets and I'd like to know how to make "complex" calls for the widget view's, for example apply a matrix transformation to an ImageView.
Is possible to do that? Should I use RemoteViews class? Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我假设您指的是“应用程序小部件”。
不支持的 ImageView 应用矩阵转换,抱歉。由于实际应用程序小部件的
View
位于另一个应用程序中(在该应用程序自己的进程中),因此您使用它们的 API 非常有限,采用RemoteViews
的形式数据结构。它不支持任意操作,特别是涉及复杂参数的操作。I am assuming here that you mean "app widgets".
That is not supported, sorry. Because the actual app widget's
View
s are in another application (in that application's own process), you have a very limited API for working with them, in the form of aRemoteViews
data structure. That does not support arbitrary operations, particularly involving complex parameters.