> Can anyone tell me if its possible to create some kind of custom > adapater for XML data to a Spinner? I'm wanting to create a set of > XML data that contains city names & latitude/longitude positions but > only display the city name in the Spinner and access the lat/long when > a new city is selected.
Sure. The biggest catch is that adapters need to return their count of entries, so you'll have to parse the XML up-front, rather than trying to parse it on the fly as the Spinner requests rows. You might consider using MatrixCursor -- parse your XML and pour in data into rows added to a MatrixCursor. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 Available! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

