Even if it’s possible, is it best practice? Or should I always use ViewGroup (or one of its subclasses) as the base class for custom components that will contain other ui components?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Not really.
By definition, a
ViewGroupis the type ofViewyou use to hold otherViews.In theory, you could completely rewrite
ViewGroupyourself, if you really wanted.