sam sam - 2 years ago 103
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?

Answer Source

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.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download