I have an Activity with some EditText fields and some buttons as a convenience for what normally would be used to populate those fields. However when we the user touches on
My test result:
with setInputType:
setInputType
editText.setInputType(InputType.TYPE_NULL);
the soft keyboard disappears, but the cursor will also disappear.
with setShowSoftInputOnFocus:
setShowSoftInputOnFocus
editText.setShowSoftInputOnFocus(false)
It works as expected.