Created
July 9, 2013 12:36
-
-
Save danieloskarsson/5957013 to your computer and use it in GitHub Desktop.
Hide and Show Keyboard in Android
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
View view = ... | |
InputMethodManager inputMethodManager = (InputMethodManager) getApplicationContext().getSystemService(Context.INPUT_METHOD_SERVICE) | |
inputMethodManager.hideSoftInputFromWindow(view.getWindowToken(), 0); | |
inputMethodManager.showSoftInput(view, InputMethodManager.SHOW_IMPLICIT); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment