Ashely,

You might want to test your widgets in landscape orientation, as that
typically also has shortened widget height.

If you don't have a phone with sliding keyboard, you can use the emulator
for that.

This page was updated for 4.0, and is now more clear than before on how
widgets are assigned sizes:

http://developer.android.com/guide/practices/ui_guidelines/widget_design.html

-- Kostya

2011/10/24 Mark Murphy <mmur...@commonsware.com>

> On Mon, Oct 24, 2011 at 2:56 AM, Ashley McConnell
> <ash...@siroccoracing.com> wrote:
> > Is there a way to reliably get the height/width?
>
> There is no way at all to get the height/width.
>
> > From searching on
> > StackOverflow it seems to be difficult with a widget with the only
> > suggestion being wait for x ms and then measure, which seems a little
> hacky.
>
> Moreover, those answers are not referring to app widgets.
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> _The Busy Coder's Guide to Android Development_ Version 3.6 Available!
>
> --
> 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
>

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