How to specify id when uses include in layout xml file

前端 未结 11 2636
挽巷
挽巷 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:21

    Problem is we try to use id which is not declared in current layout file. Instead of declaring again, id can be simply referred using @+id/. If you refactor original id name through Android Studio it does refactor in included layout as well.

    
    
    
    

提交回复
热议问题