I use the ListViewAdapter to bind the ListView on my home page and to the user keyboard. But when I clicked on EditText, the default keyboard will appear.
I tried to hide it using the following code:
InputMethodManager mgr = (InputMethodManager)activity.getSystemService(Context.INPUT_METHOD_SERVICE); mgr.hideSoftInputFromWindow(diesel.getWindowToken(), 0); activity.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN);
But that did not work.
How to hide default keyboard from ListViewAdapter?
source share