Android: include a xml into an other xml

后端 未结 3 1583
后悔当初
后悔当初 2020-12-06 16:29

How to include a xml data into an other xml data?

I have a header xml-file for my application which I want to use in my special other content xmls. Is there a ways to

3条回答
  •  借酒劲吻你
    2020-12-06 17:05

    You have to declare your "body" xml layout with a < merge > tag to use < include > tag on your principal layout.

    
    
        
    
        
    
    

    This is the content of your < include > tag

提交回复
热议问题