开发者

Problem with spinner on item selected

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜