In my application, I have an EditText that the user only has Read access not Write access.
In code I set android:enabled="false".
Although the background of EditText changed to dark, when I click on it the keyboard pops up and I can change the text.
What should I set to disable EditText?
I believe the correct would be to set
android:editable="false".And if you wonder why my link point to the attributes of
TextView, you the answer is becauseEditTextinherits fromTextView:Update:
As mentioned in the comments below,
editableis deprecated (since API level 3). You should instead be usinginputType(with the valuenone).