微调onItemSelected所谓的错误(无需用户操作) [英] Spinner onItemSelected called erroneously (without user action)

查看:129
本文介绍了微调onItemSelected所谓的错误(无需用户操作)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有对话框启动 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屋!

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