what is ids.xml used for?

后端 未结 5 509
予麋鹿
予麋鹿 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-14 00:10

    ids.xml is much more powerful. You can predefine values like

    
    
    

    not only id. Actually you can use more resource types: https://developer.android.com/guide/topics/resources/more-resources

    It's extremely helpful to predefine some layouts, colors etc. in root module for multi-module app. You can keep actual layouts, colors, etc. in specific app module which has root module as dependency.

提交回复
热议问题