I had developed Android app having some screens with common UI format.
The format in top-down approach is:
- Title Header (Two
buttons,ImageView) - Content Area- It will differ among Activities (contains ListView, Tabs, Buttons, TextView, WebView….)
- Footer Layout (
Relative Layoutwith threeImagebuttons)
I want to reformat the code in such a way that one xml contains Title Header and Footer Layout and other xml contains ListView,Tabs, Buttons.. based on the usage. Can i acheive this? Please help me with sample code/links….
You can use the include element to have sub-xml files:
This will allow you to easily create layouts that reuse these pieces.