I have an activity which has an EditText and a Button. The data in the EditText is not editable in the beginning, but it becomes editable when the Button is pressed.I have tried using android:editable="false" in the xml layout , but it is not working. Can somebody help me with this?
I have an activity which has an EditText and a Button . The data
Share
You need to first set the TextEdit editable property to false in your xml layout :
And then when the button is clicked, set the TextEdit to editable :