Make EditText ReadOnly
Please use this code..
Edittext.setEnabled(false);
If you setEnabled(false)
then your editText
would look disabled (gray, etc). You may not want to change the visual aspect of your editor.
A less intrusive way would be to use setFocusable(false)
.
I believe that this answers your question closer to your initial intent.