Created
May 17, 2015 10:02
-
-
Save mustafa01ali/f7d77ea8a97d9db9eaff to your computer and use it in GitHub Desktop.
Hide soft keyboard
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
public static void hideKeyboard(Context context) { | |
InputMethodManager imm = (InputMethodManager) context.getSystemService(Activity.INPUT_METHOD_SERVICE); | |
imm.toggleSoftInput(InputMethodManager.HIDE_IMPLICIT_ONLY, 0); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment