I have 2 EditTexts; 01 and 02. My button will be disabled after starting the activity and when these two EditText contain text, the button should be turned on again. However, my button is always disabled and cannot enable it with button.setEnabled(true);
.
Can anyone help me with this?
summit.setEnabled(false); buttonEnable(); public void buttonEnable(){ if (feedback.length()>0 && email.length()>0){ summit.setEnabled(true); }else{ summit.setEnabled(false); } }
source share