如果选择真正改变onItemSelectedListener才触发? [英] onItemSelectedListener only triggered if selection actually change?

查看:99
本文介绍了如果选择真正改变onItemSelectedListener才触发?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用 setOnItemSelectedListener 上一个微调。
如果我改变选择的侦听器被触发,但不是如果我选择已选中相同的项目。
我需要nofified即使用户选择已选择了相同的项目。
我因子评分关于使用 setOnItemClickListener ,但它不是由微调

I use setOnItemSelectedListener on a spinner. The listener is triggered if I change the selection but not if I select the same item that is already selected. I need to be nofified even if the user select the same item that is already selected. I tought about using setOnItemClickListener but it is not supported by the Spinner.

任何提示?

TIA

推荐答案

如果你还在寻找一个解决这个问题,吉斯,它可能是值得拥有看一看<一个href=\"http://stackoverflow.com/questions/7975394/how-to-use-android-spinner-like-a-drop-down-list/7980739#7980739\">a相关的问题,我问前一阵子,其中有几个答案,关于如何解决此问题的好点子。

If you're still looking for a solution to this question, Regis, it may be worth having a look at a related question I asked a while ago, which has several answers with good ideas on how to work around this issue.

这篇关于如果选择真正改变onItemSelectedListener才触发?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆