Hi all, Perhaps this has been posted but I couldn't find the answer through searching. So would appreciate a redirect if that's the case.
I love to inflate my views when I construct a custom Layout, since I can have the behavior in code but presentation defined in xml files. However, I find that when I do inflate, the inflated tree is added as a child view of my custom Layout object. So I end up with, say, a LinearLayout (my class).LinearLayout (xml). The end effect is that my hiearchy is twice as deep as it needs to be. How do I have the inflated subtree completely replace my custom class? That is, have the the subtree's root set as *this*. Is this possible? (ViewStub won't work since I need my custom class to derive from Layout for behavior code). -dave --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

