How to disable EditText in Android

aj10 picture aj10 · May 4, 2011 · Viewed 126.8k times · Source

How can I disable typing in an EditText field in Android?

Answer

chaitanya picture chaitanya · Feb 6, 2012

you can use EditText.setFocusable(false) to disable editing
EditText.setFocusableInTouchMode(true) to enable editing;