ui/src/main/java/com/stanfy/enroscar/views/GUIUtils.java
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);
    }
  }
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);
    }
  }
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.
@param textView text view containing current window token
Hide soft keyboard .