[android-developers] onEditorAction and requestFocus()
I have a case where there is an EditText field the user enters
something into, then presses the Enter key.
In the onEditorAction() method, I do some validation, and if it's not
a valid input, I want to put the focus back on the EditText field.
I've found that using .requestFocus() won't work - probably because
the focus change happens after the call to onEditorAction() and
overrides my call to requestFocus().
So, how do I put the focus back on the EditText field, from within the
onEditorAction() callback?
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home