Hide default Android Soft-input in EditText doesn't works -
i have try hide default soft-input keyboard with
getwindow().setsoftinputmode(windowmanager.layoutparams.soft_input_state_hidden);
but when click edittext keyboard appears again
i have tried also
input.setimeoptions(editorinfo.ime_flag_no_extract_ui);
and
android:imeoptions="flagnoextractui"
with no result, keyboard appears when click edittext.
if set inputtype null, keybard doesn't appear edittext became unusable since cannot select or move cursor anymore nor copy-paste anything
any solution?
if don't want keyboard appears ever, use code:
getwindow().setflags(windowmanager.layoutparams.flag_alt_focusable_im, windowmanager.layoutparams.flag_alt_focusable_im);
in way android soft keyboard hidden, , can use cursor, selection copy-paste etc. normally.
Comments
Post a Comment