Can anyone tell me how to make an EditText not editable via XML? I tried setting android:editable to false, but
EditText
android:editable
false
As mentioned in other answers, you can do a setEnabled(false) but since you are asking how to set it via XML, here is how to do it.
setEnabled(false)
Add the following attribute to your EditText:
android:enabled="false"