i really don’t get how I can use a spinner just like asp.net’s dropdownlist, where you have one value that is displayed for the user, and a hidden custom value that I can use with the change event.
like in asp.net, you can just do this:
string value = "somevalue";
dropdownlistID.Items.Add(new ListItem("text",value));
and in the event I can just retrieve it with dropdownlistID.SelectedValue
If anyone have a link that can explain this to me, or any other suggestions, please help!
I’m making an android app in vs2010 with mono for android.
Regards, Marcus
you need to create an ArrayAdapter, the same way you would to fill a ListView.
hope it helps
edit: i think i now get your question 🙂
below is an example for an custom Adapter for a list of clearances. sorry for the hardcoded german strings. The important part is the getView method. It gets called everytime a new listitem gets into the view of the user. you have to inflate a new view, or if not null reuse the convertView and fill it with the values from your list.