Last I checked, there is no way to get the actual height and width that your widget will be rendered at.
I'm hoping this changes one day as it is a major pain to get your widget to look right on different devices. Steven Studio LFP http://www.studio-lfp.com On Sunday, October 23, 2011 5:04:01 PM UTC-5, Ash McConnell wrote: > > Hi Folks, > > I've found that for some Launchers my > AppWidget<https://market.android.com/details?id=sirocco.widgets> doesn't > format quite correctly as they squash the AppWidgets by 10 or so pixels (to > add a page indicator) - e.g. Samsung Galaxy 2 and Sony Experia Arc. > > They must not provide the same amount of space (even if you consider device > independent pixels) as all units use dp. Therefore I need a way to > determine the height of an AppWidget. Is there a way? > > Thanks for your help > All the best, > Ash > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

