Created
July 18, 2018 11:20
-
-
Save kantapp/d52e02c7ed4a6efe923199cac9c6c004 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 hideSoftKeyboard(Activity activity) { | |
InputMethodManager inputMethodManager = | |
(InputMethodManager) activity.getSystemService( | |
Activity.INPUT_METHOD_SERVICE); | |
inputMethodManager.hideSoftInputFromWindow( | |
activity.getCurrentFocus().getWindowToken(), 0); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment