I’m creating an android app that will have multiple pages with the same layout, but the only thing that changes will be a string that is displayed on the top (using setText). Can I use a different xml file in the same activity class.., or does Android not allow that?
Share
No problem with that. You can use in the same activity as many XML layouts as you want. Simply switch between them using
setContentView()