-2

I disabled softInput on my editText using

public static void disableSoftInputFromAppearing(EditText editText) {
        editText.setRawInputType(InputType.TYPE_CLASS_TEXT);
        editText.setTextIsSelectable(true);
    }

But now I don't know how to enable it. A function to enable the softInput would be appreciated.

lijo050
  • 233
  • 4
  • 14

1 Answers1

1
public void showSoftKeyboard(View view) {
    if (view.requestFocus()) {
        InputMethodManager imm = (InputMethodManager)
                getSystemService(Context.INPUT_METHOD_SERVICE);
        imm.showSoftInput(view, InputMethodManager.SHOW_IMPLICIT);
    }
}

from this

Sree
  • 3,136
  • 2
  • 31
  • 39