I have a problem with spinners in form activity.
I expected the spinner to start focusing when the user βtouchesβ him, but that doesn't seem to be happening. It seems that the spinner only focuses if I use my tracker ball (on the Nexus One) to move between the various components.
This is annoying because I use the android: selectAllOnFocus = "true" attribute on the first view of the EditText in the form. Since spinners are never distracted from the EditText component, its contents are always welcome (which is an ugly IMO).
I tried using
spinner.requestFocus();
but this (seemingly) has no effect.
I tried to pay attention to the counter in AdapterView.OnItemSelectedListener, but its just the results in
Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@44cb0380
Can anyone explain this strange behavior and / or possible ways to use it.
Thank you very much,
Tim
source share