Created
February 22, 2018 02:50
-
-
Save turastory/66d809699c391b0c2de97cf639fd41a2 to your computer and use it in GitHub Desktop.
Android - Prevent Keyboard Hide when action performed
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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