I have an EditText which InputType is numberPassword, and a Button"ANYNAME". I'd like to use "OK" key on softkeyboard (numeric keyboard) instead of the Button"ANYNAME" to execute a giving function in my code.
How can I realize that?
Home / DeveloperSection / Forums / How to use “OK” key on softkeyboard (numberPassword keyboard) instead of clicking button?
I have an EditText which InputType is numberPassword, and a Button"ANYNAME". I'd like to use "OK" key on softkeyboard (numeric keyboard) instead of the Button"ANYNAME" to execute a giving function in my code.
How can I realize that?
Anonymous User
23-Jan-2015if you want to change "Done" button title, use:
mEditText.setImeActionLabel("OK", KeyEvent.KEYCODE_ENTER);