I can't figure out why this wouldn't set a button to be disabled?
btnSaturdayStartTime = (Button)findViewById(R.id.btnSaturdayStartTime);
btnSaturdayStartTime.setEnabled(false);
When I click on the button it still fires the listener.
Try using btnSaturdayStartTime.setClickable(false).
See setClickable from the docs.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With