EditText onClick not shows Virtual Keyboard

后端 未结 4 1280

If i click on my EditText, the virtual keyboard simple not shows up. The cursor is shown, but no keyboard to type on.

I even tried it with manually open but just no

4条回答
  •  时光取名叫无心
    2021-01-05 19:16

    Try to hide and show the keyboard with this code:

    InputMethodManager imm = (InputMethodManager) this.getSystemService(Service.INPUT_METHOD_SERVICE);
    // To show keyboard
    imm.showSoftInput(titleEdit, 0);
    // To hide keyboard
    imm.hideSoftInputFromWindow(titleEdit.getWindowToken(), 0);  
    

提交回复
热议问题