Can anyone tell me how to make an EditText not editable via XML? I tried setting android:editable to false, but
I tried to do:
textView.setInputType( InputType.TYPE_NULL );
which should work, but for me it did not.
I finished with this code:
textView.setKeyListener(new NumberKeyListener() {
public int getInputType() {
return InputType.TYPE_NULL;
}
protected char[] getAcceptedChars() {
return new char[] {};
}
});
which works perfectly.