hi,

i'am extending ViewGroup, implemented its abstract onLayout() and in
my ctor i added a few Views, onLayout() get called and i see my child
Views inside their parent.

now (after onLayout() get called) on some event i'm trying to add just
another View.

this time onLayout() is not called and obviously  i don't see my new
View. i tried requestLayout(), forceLayout() but nothing changed.

finally i figured out that when i call measure
(MeasureSpec.UNSPECIFIED, MeasureSpec.UNSPECIFIED) my onLayout() is
called again and i see my View.

i don't know whether it is normal behavior or i'm missing something in
my custom ViewGroup


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