Skip to content

Instantly share code, notes, and snippets.

@jjTudu
Last active March 24, 2017 06:21
Show Gist options
  • Select an option

  • Save jjTudu/6535cfff1885cbdf0503bdcedc09f590 to your computer and use it in GitHub Desktop.

Select an option

Save jjTudu/6535cfff1885cbdf0503bdcedc09f590 to your computer and use it in GitHub Desktop.
/*hideKeyBoard(this)*/
void hideKeyBoard(Activity activity){
InputMethodManager inputManager = (InputMethodManager) activity.getSystemService(Context.INPUT_METHOD_SERVICE);
inputManager.hideSoftInputFromWindow(activity.getCurrentFocus().getWindowToken(), InputMethodManager.HIDE_NOT_ALWAYS);
}
@jjTudu

jjTudu commented Mar 24, 2017

Copy link
Copy Markdown
Author

few helper codes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment