We can set editable property of EditText
in XML layout but not programatically, but there is no setEditable()
method!
If EditText
is not Enabled [ by setEnabled(false)
] it still Editable!
We can set editable property of EditText
in XML layout but not programatically, but there is no setEditable()
method!
If EditText
is not Enabled [ by setEnabled(false)
] it still Editable!
try this,
It works fine...
An easy and safe method:
This may help:
Try this it is working fine for me..
I did it in a easier way , setEditable and setFocusable false. but you should check this.
How to replicate android:editable="false" in code?