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!!!

No comments:

Post a Comment

Circle

Most recent Elastic Search tutorials for beginner, intermediate and advance level developer, Yubraj Pokharel, in CodingWorkspace