sam sam - 8 months ago 31
Android Question

what is ids.xml used for?

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:

<item name="snack" type="id"/>

What would this be used for?


id.xml is generally used to declare the id's that you use for the views in the layouts.

you could use something like

<TextView android:id="@id/snack">

for your given xml.