I created a class that extends RelativeLayout.
I also created a xml layout file.
How can I ‘connect’ between them as I connect Activities with their xml files
(setContentView(R.layout.main);)
Thanks!
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.
I mean you can use LayoutInflater to load the xml in the relative layout, but am not sure that what you should be doing. I am not sure what your trying to do but your wrapping your layout inside another view by doing this. When you can just load the xml straight into your view using the same tactic. So you lose one level of complexity.