[android-developers] Re: Is there a simple way to do Key/Value with Spinners?

2009-02-03 Thread muckwarrior
If you want to stick with using array resources, just make two arrays, one with the things to display to the user, the other with the keys. That's what I was hoping to be able to do alright. But how do I get both arrays into the spinner. Can I do it without creating a custom adapter? Also, I

[android-developers] Re: Is there a simple way to do Key/Value with Spinners?

2009-02-02 Thread muckwarrior
I'm also interested in a solution to this. Before I start hacking something together does anyone have any advice on the best way to approach it? On Jan 12, 12:21 am, Robert Green rbgrn@gmail.com wrote: I'm familiar with arrays.xml to define static data sets for spinners and this works

[android-developers] Re: Is there a simple way to do Key/Value with Spinners?

2009-02-02 Thread Dianne Hackborn
If you want to stick with using array resources, just make two arrays, one with the things to display to the user, the other with the keys. Otherwise, you can always make your own adapter, and load that from an XML resource or anything else of whatever format you want. On Sun, Jan 11, 2009 at