Well, if you mean nesting View classes, that's not possible. You can nest views/viewgroups if the parent is a ViewGroup.
2010/11/10 kavitha b <[email protected]> > I want nest 2 custom views through code. > > I didnt understand how to do it. > > Please provide any example. > > 2010/11/10 Kostya Vasilyev <[email protected]> > >> Well, subclass ViewGroup or one of its subclasses for the outer view, and >> View or one of its subclasses for the inner view. Then create them nested, >> either with xml, or from code. >> >> -- >> Kostya Vasilyev -- http://kmansoft.wordpress.com >> >> 10.11.2010 19:04 пользователь "kavitha b" <[email protected]> написал: >> >> >> Can you please provide me an example of that. >> >> I want to nest custom views,,,i mean outside one custom view and inside >> that another custom view.but how to draw a view within another? >> >> It is very very urgent. >> >> Please help. >> >> 2010/11/10 Kostya Vasilyev <[email protected]> >> >> >> > >> > Sure, as long as the enclosing view is a ViewGroup (custom or not). >> > >> > -- >> > Kostya Vasilyev --... >> >> >> >> >> -- >> You received this message because you are subscribed to the Google >> Groups "Android Developers... >> >> -- >> 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]<android-developers%[email protected]> >> For more options, visit this group at >> http://groups.google.com/group/android-developers?hl=en >> > > -- > 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]<android-developers%[email protected]> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com -- 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

