how to make an editText not editable and how to make it editable again I want the solution in kotlin code I tried (editText.isFocusable = false) it works but when i want it editable again (editText.isFocusable = true) does not make it editable again
CodePudding user response:
You need to do that
yourEditText.setEnabled(false);
CodePudding user response:
I tried (isFocusableInTouchMode = true
) it does make the EditText
editable again. And I use isFocusable = false
when I want it not editable