In my application, I have an EditText that user only have Read access not Write access.
In code I set
Although the background of EditText changed to dark, when I click on it the keyboard pops up up and I can change text.
What should I set to disable EdidText?
I believe the correct would be to set
And if you wonder why my link point to the attributes of
TextView, you the answer is because
EditText inherits from
EditText is a thin veneer over TextView that configures itself to be editable.
EditText.setFocusable(false) to disable editing
EditText.setFocusableInTouchMode(true) to enable editing;