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

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

Function that returns a formatted array in VBA -