如何在 editText 上启用 softInput

How to enable the softInput on the editText

我使用

在我的 editText 上禁用了 softInput
public static void disableSoftInputFromAppearing(EditText editText) {
        editText.setRawInputType(InputType.TYPE_CLASS_TEXT);
        editText.setTextIsSelectable(true);
    }

但现在我不知道如何启用它。启用 softInput 的功能将不胜感激。

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

来自 this