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
This works for me:
EditText.setKeyListener(null);