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
You could use android:editable="false" but I would really advise you to use setEnabled(false) as it provides a visual clue to the user that the control cannot be edited. The same visual cue is used by all disabled widgets and consistency is good.
android:editable="false"
setEnabled(false)