Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void hideKeyboard(Activity activity) {
- InputMethodManager imm = getIMM(activity);
- IBinder windowToken = activity.getWindow().getDecorView().getRootView().getWindowToken();
- imm.hideSoftInputFromWindow(windowToken, 0);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement