Many a times we come across a condition wherein we have to repeat the same piece of layout code again and again in multiple layouts. The
Sample:
header.xml
footer.xml body.xml main.xml
Output:
<include /> does exactly what its name suggests; it includes another XML layout. Using this tag is straightforward.Sample:
header.xml
footer.xml body.xml main.xml
Output:

No comments:
Post a Comment