Setting attribute of child element of included layout

后端 未结 3 1660
情书的邮戳
情书的邮戳 2021-02-03 18:46

I have a main.xml file describing the layout of my main activity:




        
3条回答
  •  后悔当初
    2021-02-03 18:58

    It is possible if you enable data binding:

    In reuse_layout.xml

    
    
        
           
        
        
    
            
    
            

    when you call the reuse_layout.xml just add app:text attribute with it

    
    

提交回复
热议问题