[android-beginners] moving Views and View.getWidth(), getHeight(), etc..

2010-01-13 Thread oregonduckman
I am working on an app that requires widgets to be repositioned at runtime. The docs say getWidth() should return the width of View at runtime but the only value getWidth() returns is 0. Can someone point me in the right direction on how to get the dimensions of a view at runtime? -- You

Re: [android-beginners] moving Views and View.getWidth(), getHeight(), etc..

2010-01-13 Thread Justin Anderson
Are you trying to get the widthe before it has been displayed on the screen? If so it will be 0 because the width doesn't get calculated until it is displayed On Jan 13, 2010 6:48 PM, oregonduckman oregonduck...@gmail.com wrote: I am working on an app that requires widgets to be repositioned at