Hi,
I am trying set the height of the button in a view using the width of
the window (basically i am trying to create square buttons). For this
i am calling the getRootView().getWidth() on a view specified in the
layout xml file. Now the problem is that this thing works fine the
first time the application is deployed. getWidth() returns the right
height. But when i close the activity and recreate it i get the width
as zero. So from second launch onwards  the height of the buttons gets
all messed up.

 Any clues what the reason might be and how to fix this?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to