I want to know that whether can we split an zml page into 2 parts so then we can use it for 2 activities i.e., upper half for one activity and below half for another purpose.
Is this is possible in android
I want to know that whether can we split an zml page into 2
Share
Well, you can do it but in a sliglty different way:
1. Create an xml for the upper half – one.xml
2. Create another xml for the below half – two.xml
3. To use one.xml and two.xml together, create an xml – three.xml, and include one.xml and two.xml in it using the tag.
In this way, you can reuse some of your code.
Here is a little hint: