Can't get AppWidget Size... Can I get a child view's size?
Doing some research it seems there is no way to get the size of a widget
(I have no idea why that is!!!). So I had an idea, is it possible to get
the size of one of its children views by using RemoteViews? The child (an
ImageView) is set to fill_parent for it's layout_width and layout_height
properties. So theoretically that would be the size of the widget, but
more importantly the size I actually need. I looked through RemoteView's
methods and didn't see anything particularly useful, did I miss something?
Am I at least on the right track?
The reason I need to know the size is because I'm using a custom font, so
I need to draw to a bitmap and place that in an ImageView. I need to know
the size so I can draw the text correctly.
No comments:
Post a Comment