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

Popular posts from this blog

mod rewrite - Using "?" when rewriting the URL -

.htaccess: Transfer name to index.php if not directory public -

Admob integration with pygame in android -