Let your Edittext be
EditText editText;
editText.setKeyListener(null);
will work but it just not listening to keys.
User can see a cursor on the edittext.
You can try editText.setEnabled(false);
That means user cannot see the cursor. To simply say it will became TextView.