How to specify id when uses include in layout xml file

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

    1. you must set id each include tag
    2. included child element set a new id. if you look how to generate new id, look at this entry: https://stackoverflow.com/a/15442898/1136117

提交回复
热议问题