On Mon, Jun 15, 2009 at 9:34 AM, Matt<matthew.quig...@gmail.com> wrote: > >> RelativeLayout does exactly what the documentation says it should be >> doing. The size and position is are assigned in onLayout(). > > 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().
How is that not what the documentation says? The documentation says that onMeasure "determines" the size. You say it "calculates" it. >> It's just using cached values computed in onMeasure(), which does not >> go against the concepts of ViewGroups as defined by the javadoc. > > 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 documentation explicitly says they should be *determined* in onMeasure. You even quoted the part of the documentation that says exactly that. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---