Skip to content

Instantly share code, notes, and snippets.

@turastory
Created February 22, 2018 02:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save turastory/66d809699c391b0c2de97cf639fd41a2 to your computer and use it in GitHub Desktop.
Save turastory/66d809699c391b0c2de97cf639fd41a2 to your computer and use it in GitHub Desktop.
Android - Prevent Keyboard Hide when action performed
editText.setOnEditorActionListener((v, actionId, event) -> {
// Specify the action what you want
if (actionId == EditorInfo.IME_ACTION_DONE) {
// System does not going to handle this action.
return true;
}
return false;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment