>
> No, they're not.  They are assigned in onMeasure(). Well, if you want
> to get technical, they are calculated in onMeasure(), and assigned in
> onLayout().


They are not assigned in onMeasure(), they are assigned in onLayout(), just
as the javadoc says it should be.


> The size and position should be determined in onLayout.  They are not,
> they are determined in onMeasure.  The javadoc explicitly states that
> the size and position should be determined in onLayout.  They are not.


No, the javadoc states that the size and positions should be *assigned* in
onLayout():

"Called from layout when this view should assign a size and position to each
of its children"

There is absolutely no restriction on how and when the sizes and positions
are computed. You could very well do it in the view's constructor if you
wanted.

-- 
Romain Guy
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time to
provide private support.  All such questions should be posted on public
forums, where I and others can see and answer them

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

Reply via email to