Last active
June 18, 2016 10:34
-
-
Save Mor4eza/5627e3d41adc18d6f83fa94c664e34a2 to your computer and use it in GitHub Desktop.
hide 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
//hide keyboard after editText lost Focus in custom dialog | |
View view = input; | |
if (view != null) { | |
InputMethodManager imm = (InputMethodManager)context.getSystemService(Context.INPUT_METHOD_SERVICE); | |
imm.hideSoftInputFromWindow(view.getWindowToken(), 0); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment