How to disable IME functionality EditText?
Or: How to avoid displaying the IME keyboard?
I have a layout where my special keyboard sits below EditText, so there is no need to show IME. Please understand that I cannot implement my keyboard as IME, since it is specific to this EditText, and using it in any other context can cause problems.
I tried to use
getWindow().setSoftInputMode(LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN);
in onCreate()activity, but it is not like anything in this situation.
source
share