WarrenFaith wrote:Sorry but i don't really understand what you want to do...
Can you be a bit more specific?
Hi - I understand you can easily use an ArrayAdapter to bind to a Spinner, but they only (as far as I can see) support a one dimensional array. What I was trying to discover was whether theres any existing adapter that supports custom XML files..
E.g.
Using xml Syntax Highlighting
<data>
<city>
<name>London</name>
<latitude>52.0</latitude>
<longitude>0</longitude>
</city>
<city>
<name>Sydney, Australia</name>
<latitude>32.0</latitude>
<longitude>120</longitude>
</city>
</data>
Parsed in 0.002 seconds, using
GeSHi 1.0.8.4
And show the city name in the spinner, but be able to retrieve the other xml data, lat & long when the item is selected....