Do not call measure directly unless you understand precisely how to use it. You *have* to wait for the first layout to query the width and height of a View.
On Fri, Jan 16, 2009 at 11:06 AM, skink <[email protected]> wrote: > >> Is it even possible to know the view >> dimensions prior to actually displaying the initial screen? >> >> Much thanks, > > i tried to call view's measure() method and then getMeasuredWidth/ > Height() but sometimes got strange (8 pixels wider and taller) results > > > -- Romain Guy Android framework engineer [email protected] Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" 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-beginners?hl=en -~----------~----~----~----~------~----~------~--~---

