微调onItemSelected所谓的错误(无需用户操作) [英] Spinner onItemSelected called erroneously (without user action)
问题描述
我有对话框启动 onItemSelected
被称为微调而我显示在对话框中查看,并时刻。我真的不希望处理这一点,但只有当用户进行选择。所以,我要么需要prevent这个(也许是因为没有设置默认值),或者我需要知道它是不是正在此选择的用户?
I have a spinner which I am showing in a dialog view, and the moment the dialog starts onItemSelected
is called. I don't really want to process this but only when user makes the selection. So I either need to prevent this (maybe because no default value is set?), or I need to know it is not the user that is making this selection?
推荐答案
Androider,我已经找到了一个解决这个问题,并张贴在这里(与code样品):
Androider, I have found a solution for this problem and posted it here (with code sample):
<一个href="http://stackoverflow.com/questions/5624825/spinner-onitemselected-executes-when-it-is-not-suppose-to/5918177#5918177">Spinner onItemSelected()执行时,它不是假设。
这篇关于微调onItemSelected所谓的错误(无需用户操作)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!