I have a problem with spinner. I am trying to create a spinner control which will do something on selection change.
However I have noticed that when I call the Spinner.setOnItemSelectedListner()
the inner onItemSelected()
method gets called (even though no change has yet to have been made to the spinner).
开发者_运维问答my code requires this method does not get called before it is actually changed. Is this a bug or am I doing something wrong?
ok.. In that case what you can do is to put one if condition (not satisfying the particular position on which you don't want spinner method to respond to ) above the block that responses to change in spinner item.
精彩评论