4

I am been trying to figure out how to get information from a remoteView. There sees to be plenty of set functions but no get functions.

More precisely I would like to get the size of my remote view like this question but for remoteViews.

Community
  • 1
  • 1
Nys
  • 556
  • 4
  • 10

1 Answers1

4

This is not possible, sorry. RemoteViews is a data structure, designed to be passed to and used by another process.

More precisely I would like to get the size of my remote view like this question but for remoteViews.

RemoteViews does not have a "size", at least in terms of pixels, any more than a String does. The resulting widget tree created by the other process applying the RemoteViews has a size, but only the other process knows about that.

CommonsWare
  • 986,068
  • 189
  • 2,389
  • 2,491