Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void closeKeyboard() {
- View view = this.getCurrentFocus();
- if (view != null) {
- InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);
- imm.hideSoftInputFromWindow(view.getWindowToken(), 0);
- }
- }
Add Comment
Please, Sign In to add comment