I have two text fields and a Button. I want to disable the Button unless both EditText-Fields are not empty. I tried many solutions here at stackoverflow, but they don\'t wo
A different way to do this would be
b.setEnabled(!s1.trim().isEmpty() && !s2.trim().isEmpty());