find xml array id programmatically



I use below code in my array.xml file inorder to defining a array:



<string-array name="cities_azarbayejanSharghi">
<item id="15">A</item>
<item id="36">B</item>
<item id="140">C</item>
<item id="95">D</item>
</string-array>


I want to access the id of each field in the code when it is selected as spinner's selecteditem. Is there any ways?


No comments:

Post a Comment