How to Prevent Keyboard appearing for EditText that is not enabled

My activity has an EditText which is supposedly not editable until user clicks on edit button for the screen.

I did edit.setEnabled(false) but still a keyboard appears for the user and values can be added to the EditText in the screen via the keyboard even though the screen might look a bit greyed out. What else do I have to do to prevent editing of the EditText until user has specifically pushed an edit button.

Thanks, Steve

6
задан Tiago Almeida 25 April 2012 в 17:02
поделиться