public static void hideSoftInput ( final View textView ) { try { final InputMethodManager imm = ( InputMethodManager ) textView . getContext ( ) . getSystemService ( Context . INPUT_METHOD_SERVICE ) ; imm . hideSoftInputFromWindow ( textView . getWindowToken ( ) , 0 ) ; } catch ( final Exception e ) { Log . w ( TAG , "Ignore exception" , e ) ; } }
Hide soft keyboard .