How to make EditText not editable in android

EditText is a thin veneer over TextView that configures itself to be editable.
  
Here is the simple code for make not editable or disable in android;

edittext.setKeyListener(null);

or 

edittext.setFocusable(false);
edittext.setClickable(true);

More about EditText.

Happy Coding!!!
How to make EditText not editable in android How to make EditText not editable in android Reviewed by D Kshetri on 1:40 AM Rating: 5

No comments:

Powered by Blogger.