import xml into another xml

后端 未结 4 1484
后悔当初
后悔当初 2020-12-12 17:29

I have lots of control repeated in my xml (a Button for instance). Is there any possibility to write the Button once in a xml

4条回答
  •  -上瘾入骨i
    2020-12-12 17:56

    In addition to those great answers, you can also avoid code duplication by using the tag, like so:

    
    
        

    The part gets stripped when you include it into other xml. This might help including more than a single Button at a time. See the official documentation.

提交回复
热议问题