Skip to content Skip to sidebar Skip to footer

EditText Is Not Showing Virtual Keyboard

I have created a dynamic screen with editText in it..but after click it is not showing the virtual keyboard.I have added these following codes..but still ot worked. getWindow().set

Solution 1:

Let me try, I think you need to set focus on editText like..

    editText.setFocusableInTouchMode(true);
    editText.requestFocus();

I am not sure but try it and let me know it works or not.


Solution 2:

Remove from XML

Android:isFocusable="false"

If it is not post your XML please

Btw this

 getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE)

Is correct


Solution 3:

try this

InputMethodManager mgr = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);

mgr.showSoftInput(editText, InputMethodManager.SHOW_IMPLICIT);

Post a Comment for "EditText Is Not Showing Virtual Keyboard"