Ok so below is a snippet of my xml code:
<string-array name="country_data">
<item>
<font color="#7c7b7b">
<country>Afghanistan</country>
<countryCode>93</countryCode>
<iso2>AF</iso2>
<iso3>AFG</iso3>
</font>
</item>
I want to display just the country in a spinner object. I can display all the data and can do it if I only have Country in the item but I want the rest of the data there too to reference elsewhere when needed.
My android Java code is as follows:
ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(this,
R.array.country_data, android.R.layout.simple_spinner_item);
country_data is the name of the string-array. What should I change/add to just display Afghanistan instead of Afghanistan 93 AF AFG