17.03.2011 20:44, Syed Rakib Al Hasan ?????:
if i am using XMLlayouts, is using the onWindowFocusChanged() method
an inappropriate idea?
It just seems like a hack (to me).
Your task is - as you described it - is to position a view (button)
within its parent.
The Android UI framework has a mechanism for doing exactly that, which is:
- Used within the framework: reliable;
- Used within the framework: you can look up sample code;
- Fairly simple;
- Documented.
onWindowFocusChanged works because this method is called within the
right interval, but doesn't seem to have anything to do with positioning
child views.
To me, the former looks much better. But maybe it's just me.
--
Kostya Vasilyev -- http://kmansoft.wordpress.com
--
You received this message because you are subscribed to the Google
Groups "Android Developers" 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-developers?hl=en