ui/src/main/java/com/stanfy/enroscar/views/GUIUtils.java
public static void toggleSoftInput(final View textView) {
    try {
      final InputMethodManager imm = (InputMethodManager)textView.getContext().getSystemService(Context.INPUT_METHOD_SERVICE);
      imm.toggleSoftInputFromWindow(textView.getWindowToken(), 0, 0);
    } catch (final Exception e) {
      Log.w(TAG, "Ignore exception", e);
    }
  }
public static void toggleSoftInput(final View textView) {
    try {
      final InputMethodManager imm = (InputMethodManager)textView.getContext().getSystemService(Context.INPUT_METHOD_SERVICE);
      imm.toggleSoftInputFromWindow(textView.getWindowToken(), 0, 0);
    } catch (final Exception e) {
      Log.w(TAG, "Ignore exception", e);
    }
  }
Toggles keyboard visibility.
@param textView text view containing current window token