Problem:
There are a lot of posts around regarding a problem with Spinner.setSelection(i) function. I encountered this issue when I've tried to replace the adapter in the Spinner and select a new item. The setSelection function seems like it's not working, but when I click the spinner the selected item was the correct one.
Solution:
Use Spinner.setSelection(i, true) instead
Tuesday, December 14, 2010
Subscribe to:
Post Comments (Atom)
2 comments:
Man, thank you very much for this answer.
Hi
I have this problem, but your solution does not work for me!
I have two spinner, first change correctly, but second does not change at all.
I will appreciate if you help me.
Thanks Fazileh.
Post a Comment