minWidth at least gives it to you in pixels, whereas the xml is
usually defined in dip.  Plus if you don't want to have different
sources for each size it can help so you can just directly copy/paste
any changes.  Still, the ability to calculate actual size at runtime
would be nifty...

On Jan 17, 3:07 am, Kostya Vasilyev <kmans...@gmail.com> wrote:
> I believe minWidth comes from the widget_info.xml in your package, so it's
> not very useful to the widget's own code.
>
> As for different widget sizes with different displays and launchers -
> *sigh*.
>
> 2011/1/17 keyboardr <keyboa...@gmail.com>
>
>
>
>
>
>
>
> > Does anyone know how to allow your appwidget to account for being
> > resized (a la LauncherPro or ADW)?  My widget already dynamically
> > figures out how many of an item to draw based on the size of the
> > widget (meaning I can have multiple providerInfos without having to
> > change the provider), but
> > AppWidgetManager.getAppWidgetInfo(widgetId).minWidth doesn't get
> > changed when LauncherPro or ADW change the size of the widget.
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com<android-developers%2Bunsubs 
> > cr...@googlegroups.com>
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to