Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. public static void hideKeyboard(Activity activity) {
  2. InputMethodManager imm = getIMM(activity);
  3. IBinder windowToken = activity.getWindow().getDecorView().getRootView().getWindowToken();
  4. imm.hideSoftInputFromWindow(windowToken, 0);
  5. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement