In the Android page layout design, it is sometimes necessary to use a lot of the same layout design. If the same layout is written in each XML used in the layout, it will result in redundant statements and poor readability.
To solve this problem, we can write the same layout code in a separate module, and then use the <include/> tag to reuse the layout code.
Specific implementation:
Use the <include/> tab to refer directly to the XML when it needs to use an identical layout module.
The ID of the same layout module and the XML name in res/layout/are roughly required:
Altogether two <include/> tabs were used by the knowable. The child is now only the ID and layout name on the line.
When you look at someone else's project, you get this usage, so write it down.
Reference:
http://blog.csdn.net/wangljgood/article/details/6556175
http://blog.csdn.net/race604/article/details/7564088
android tab <include use of/>