As far as I know, there isn't. The closest you can get is to use fill_parent
(for width and/or height) subtracting some margins (except for ICS, which
adds margins automatically).

Does your widget fit the minimum height specified in the docs?

--
Kostya Vasilyev
24.10.2011 2:04 пользователь "Ash McConnell" <[email protected]>
написал:

> 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

-- 
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

Reply via email to