Last active
March 24, 2017 06:21
-
-
Save jjTudu/6535cfff1885cbdf0503bdcedc09f590 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
/*hideKeyBoard(this)*/ | |
void hideKeyBoard(Activity activity){ | |
InputMethodManager inputManager = (InputMethodManager) activity.getSystemService(Context.INPUT_METHOD_SERVICE); | |
inputManager.hideSoftInputFromWindow(activity.getCurrentFocus().getWindowToken(), InputMethodManager.HIDE_NOT_ALWAYS); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
few helper codes