what is ids.xml used for?

后端 未结 5 623
予麋鹿
予麋鹿 2020-12-13 23:40

Just a quick question, what is the ids.xml used for when developing an Android app? I saw an example on the android resources webpage which contained:



        
5条回答
  •  孤街浪徒
    2020-12-13 23:51

    ids.xml has the following advantage: all ids were declared, so compiler can recognize them. If something like this:

    
    
    

    Can result in compiling error because text2 was refered before declared

提交回复
热议问题