0

I want to input a name through EditText and then after inputting it should set itself as permanent so that there can't be anymore editing on the EditText. Basically, convert it to TextView and display the inputted name.

Ronak Thakkar
  • 2,515
  • 6
  • 31
  • 45

2 Answers2

0

Simple make the editext non editable like this

yourEditText.setFocusable(false);
yourEditText.setFocusableInTouchMode(false);
yourEditText.setClickable(false); 
Niza Siwale
  • 2,390
  • 1
  • 18
  • 20
0

Able to Edit

editText.setEnabled(true);

Unable to edit

editText.setEnabled(false);