How to specify id when uses include in layout xml file

前端 未结 11 2616
挽巷
挽巷 2020-12-02 08:55

In my layout xml file, I have included other layout xml file (each with a different android id).



        
11条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-02 09:40

    If you have set id to either root tag of included layout then you can use that id or you can set id to included layout.

    But you can not set id to both it may throw exception.

    
    
    
    
    
    ....
    
    

    Or

    
    
    
    
    
    ....
    
    

提交回复
热议问题