Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我一直在试图弄清楚如何从 remoteView 获取信息。似乎有很多 set 函数,但没有 get 函数。
更准确地说,我 想像这个问题一样获得我的远程视图的大小,但对于 remoteViews。
这是不可能的,对不起。RemoteViews是一种数据结构,旨在传递给另一个进程并由另一个进程使用。
RemoteViews
更准确地说,我想像这个问题一样获得我的远程视图的大小,但对于 remoteViews。
RemoteViews没有“大小”,至少在像素方面,没有 a 更多String。由应用 的其他进程创建的结果小部件树RemoteViews具有大小,但只有其他进程知道这一点。
String