I am working on a dialog at Android with a few EditText
s.
I've put this line at the onCreate()
in order to disable the soft keyboard:
Keypad.this.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN);
The problem is that it works only when the dialog appear and doing nothing.
When I move to the next EditText
, the keyboard appears and not going down.
Does anybody have an idea how to solve this issue?
Put this in Oncreate Method
create your own class that extends
EditText
and override theonCheckIsTextEditor()
:in order to disable ANDROID SOFT INPUT KEYBOARD xml file doesn't help in my case calling the setInputType method on EditText object in java file works great. here is the code.
If you take look on onCheckIsTextEditor() method implementation (in TextView), it looks like this:
This means you don't have to subclass, you can just:
I tried setting android:inputType="none" in layout xml but it didn't work for me, so I did it programmatically.
Know its too late, but have you tried the following setting to EditText in your layout ?
UPDATE
Use,
Try this out..