远程查看和非基本操作

发布于 2024-12-17 10:40:05 字数 105 浏览 1 评论 0原文

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

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

发布评论

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

评论(1

橘和柠 2024-12-24 10:40:05

我从 Android 小部件开始

我假设您指的是“应用程序小部件”。

我想知道如何对小部件视图进行“复杂”调用,例如对 ImageView 应用矩阵转换

不支持的 ImageView 应用矩阵转换,抱歉。由于实际应用程序小部件的 View 位于另一个应用程序中(在该应用程序自己的进程中),因此您使用它们的 API 非常有限,采用 RemoteViews 的形式数据结构。它不支持任意操作,特别是涉及复杂参数的操作。

I'm starting with Android widgets

I am assuming here that you mean "app 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

That is not supported, sorry. Because the actual app widget's Views are in another application (in that application's own process), you have a very limited API for working with them, in the form of a RemoteViews data structure. That does not support arbitrary operations, particularly involving complex parameters.

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