문제

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.

도움이 되었습니까?

해결책

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 of ViewBinder implementations -- 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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top