I have a datepicker from here that I have to enable and disable with a button click. I tried:
datepicker.setActivated(false);
datepicker.setEnabled(false);
datepicker.setClickable(false);
datepicker.setFocusable(false);
datepicker.setFocusableInTouchMode(false);
but nothing works. I even tried putting the datepickerdialog inside a layout and put the same settings on the layout but didn't work as well.
Thanks in advance.