Well, this is dragging me crazy…
I’ve already read THIS, THIS and THIS, but nothing works for me.
SCENARIO
This is the scenario: my polls application reads the survey from a configuration file, the questions may have single, multiple or text answers.
In the first case i add RadioButtons to the activity, in the second case Checkboxes and in the third case some multiline EditText.
All works fine, but when the survey is scrolled down the focus is automatically received by the next EditText that automatically shows the SoftKeyboard.
This is very annoing considering that my user may want to respond to first question, then to the second and then jump to the last only to return to the third one in a second time.
Currently at the very first time the first EditText receives the focus, the keyboard popups and still remains even if the user continue scrolling down (and so even when the cursed EditText finally lost the focus).
QUESTION
How can i have an EditText that shows the keyboard ONLY WHEN IT IS CLICKED by the user and NOT when receives only the focus?
ENVIRO
Level 13 APIs (Honeycomb)
Thanks in advance
Lorenzo (that is seriously considering open a resturant)
In your onCreate(..) method you can set your EditText control to be unfocusable using
This should prevent the keyboard from display on scrolling.
In your onClickListener(..) you can reenable it using