Android - How to tell is someone has pressed a SPINNER but not changed the visible item in it.

Posted by andy_spoo on Stack Overflow See other posts from Stack Overflow or by andy_spoo
Published on 2010-06-06T11:44:30Z Indexed on 2010/06/06 11:52 UTC
Read the original article Hit count: 357

Filed under:
|
|
|
|

I have a spinner, which mostly works. If a user selects one of the items in it, the 'onItemSelected' routine catches it just fine.

But if a user clicks the same spinner, but does not change from the already visible item that it's currently displaying, the 'onItemSelected' routine just ignores it, and the logs show:-

WARN/InputManagerService(577): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@437948b0

I there anyway to capture someone doing this? The idea is that my spinner contains a list of names, and when a user selects one from the spinner, it gets added to a listview.

I could just add another button to get the name from the spinner, but, screen-space is already lacking and I'd rather not add anymore content.

© Stack Overflow or respective owner

Related posts about android

Related posts about listview