First of all, you need to bring all the code to the top of your, for example, state change method, and after that, to uncheck the box, you can make a state variable and put the value of the variable on false and after that you can call checkbox.setSelected(false); or boolean state = false; CheckBox.setSelected(state); boolean state = false; CheckBox.setSelected(state); , what is it!!!
source share