[android-developers] Re: Getting widget size

2010-05-10 Thread String
Here's what works for me: First, in your manifest XML, make sure you have . AFAIK, if that's set to false, the platform always pre-scales your widget to MDPI-standard measurements. Then in your ACTION_APPWIDGET_UPDATE handler, you'll need to get an AppWidgetProviderInfo object (using AppWidgetMan

Re: [android-developers] Re: Getting widget size

2012-10-16 Thread ahmed.bahrini
This only gets the minHeight that is mentioned in the appwidget-provider xml file, not the actual size of widget. for example if you set the minHeight to 70dp, it always gets this height multiplied with the displayMetrix. so in HDPI it will be 70*1.5, and in MDPI it will be 70*1, and so on. I hav