Mickey wrote:
> I was expecting a sort of callback method on the Activity class or any
> listener on the View (or ViewGroup) to be implemeted so that I can get
> the size of UI components.

There are callbacks on View for this, onLayout() and onMeasure().

If you need to implement custom layout rules that need to know the sizes
of widgets, the official answer is to write your own layout class
(subclass of ViewGroup) that incorporates those rules, and there you can
get the sizes you need.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Android App Developer Books: http://commonsware.com/books

-- 
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

To unsubscribe, reply using "remove me" as the subject.

Reply via email to