I have used ArrayAdapter to populate the Spinner. I want to know if it can be done using a SimpleAdapter? Please guide me in the right direction.
Thanks in advance.
I have used ArrayAdapter to populate the Spinner. I want to know if it
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If my answer here (including the follow-up comments) is correct, then you may need to add a ViewBinder to the
SimpleAdapter. You can google for examples ofViewBinderimplementations — it doesn’t seem to be very complicated.EDIT: You do need the ViewBinder, at least for some earlier versions of AndroidOS (I found it’s not needed for 2.2). See the other answer, and perhaps also my blog post about this.