xml - Android layout reuse -
i have android application needs use linear layout in several activities. reason, have extracted needed linearlayout separate xml file don't know how add layout other layouts. simply, idea this:
<xml layout id: "somesharedcontrols" /> <xml layout id:"mainwindow"> add @id somesharedcontrols ... other xml controls in current window ... </xml> <xml layout id: "anotherwindow"> add @id somesharedcontrols ... other xml controls in current window ... </xml>
how achieve that?
you can use <include>
. read this.
Comments
Post a Comment