I want to make a read-only EditText view. The XML to do this code seems to be android:editable=\"false\", but I want to do this in code.
EditText
android:editable=\"false\"
H
If you setEnabled(false) then your editText would look disabled (gray, etc). You may not want to change the visual aspect of your editor.
setEnabled(false)
editText
A less intrusive way would be to use setFocusable(false).
setFocusable(false)
I believe that this answers your question closer to your initial intent.