I am programming for a Pidion
device that is running Android 2.3.7 (Gingerbread)
. The Pidion
comes with a built in keyboard
and I would like to disable the softkeyboard
from opening.
What is the best way to disable softkeyboard?
I am programming for a Pidion
device that is running Android 2.3.7 (Gingerbread)
. The Pidion
comes with a built in keyboard
and I would like to disable the softkeyboard
from opening.
What is the best way to disable softkeyboard?
try this:
((EditText) findViewById(R.id.editTextReference)).setInputType(InputType.TYPE_NULL);
inside Activity you can do this:
getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_HIDDEN);
or inside Fragment you can just use
getActivity().getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_HIDDEN);