Well, I'm trying to prevent the soft keyboard from closing when the user press the "ok" button after editing a text field.
Actually, what i'm trying to achieve is : when "ok" button is pressed, the field is parsed and if valid, it starts another activity.
That is easy enough.
But, when the field is not valid, I want the soft keyboard to stay open.
And that's... a hell more complicated.
If anyone know how to achieve such a thing...
Thanks in advance.
EDIT : what I mean by the OK button is the OK button from the soft keyboard.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…