[android-developers] Re: Why do getWidth() and related functions always return 0?

2008-12-09 Thread Keith Wiley
Thanks, very helpful info. I'll take it under advisement. Cheers! On Dec 9, 11:54 am, Ian <[EMAIL PROTECTED]> wrote: > Hi Keith, > > Yes, it's a little tricky.  And I certainly don't consider the docs to > be thorough more of a work in progress. > > Anyhow, the deal is that layout of the co

[android-developers] Re: Why do getWidth() and related functions always return 0?

2008-12-09 Thread Ian
Hi Keith, Yes, it's a little tricky. And I certainly don't consider the docs to be thorough more of a work in progress. Anyhow, the deal is that layout of the contents of a window happens *after* all the elements are constructed and added to their parent views. It has to be this way, becau

[android-developers] Re: Why do getWidth() and related functions always return 0?

2008-12-09 Thread Keith Wiley
I'm sorry, I really don't know what you're trying to point me to. I have thoroughly read the docs for the class android.view.View. Is that what you're referring to when you say "View docs on layout" or do you mean a different document? I am afraid that while that documentation is clearly thorou

[android-developers] Re: Why do getWidth() and related functions always return 0?

2008-12-09 Thread Dianne Hackborn
Read the View docs on layout. On Tue, Dec 9, 2008 at 9:24 AM, Keith Wiley <[EMAIL PROTECTED]> wrote: > > I'm perplexed why the dimension accessors on Views generally return > 0. I have specified fill_parent as their layout_width and > layout_height, yet calls to getWidth(), getRight(), etc. all