it’s possible in runtime set another layout in my activity?
How it is possible?
Doing only setContextView(new layout ) it gives a error in execution
Regards
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 would recommend you transition to a new
Activityrather than callingsetContentView()again.If you want to go the route of calling
setContentView()a second time you will have to re-initialize all of theViewsin the layout again withfindViewById()and make sure you don’t use or leak old references.