public static void requestHideKeyboard ( View v ) { InputMethodManager imm = ( ( InputMethodManager ) QuickUtils . getContext ( ) . getSystemService ( Context . INPUT_METHOD_SERVICE ) ) ; imm . hideSoftInputFromWindow ( v . getWindowToken ( ) , 0 ) ; }
Hides the SoftKeyboard input careful as if you pass a view that didn t open the soft - keyboard it will ignore this call and not close