how to use Android Spinner with text and value?
- by UMMA
dear friends,
i want to use Android spinner with following data.
Spinner will display only text data not code.
code , text
1 , a
2, b
3,c
.
.
.
etc
i have stored above comma seperated data in same activity class (Hard coded form) now if user selects "a" from the dropdown then it should get its code rather then text.
can any one guide me how to achieve this?
any help would be appriciated.