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 fine except that so far I am only able to define lists > of values for the spinner. What I need now is to have keys associated > with those values so that in the future when I add new elements in > arbitrary positions, it won't matter and the code won't have to be > updated to handle it. I'd like it if it worked like the select/option > in html. > > The idea is to have a data set like this: > > Key / Value > ----------------- > "flwr1" / "Rose" > "flwr2" / "Daffodil" > > and the spinner would show > "Rose" > "Daffodil" > > but the code can get to > "flwr1" > "flwr2" > > Sounds easy enough, right? Can anyone give me a quick code snippet > to get me there? > > Thanks! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---