简单来说,RadioGroup 中的 RadioButtons。使用 case-if 方法进行 boolean 运算。一切正常,并且可以在三个 RadioButton 之间切换。
问题
如何通过再次单击已选择的 RadioButton 或单击屏幕上的任意位置来取消单击此 RadioButton,以便再次取消选择它。一般来说,回到 - 三个未选择并准备好选择的选项。
谢谢
最佳答案
您可以随时使用 button.setChecked(false);
或将所有按钮分组到 RadioGroup,然后 RadioGroup.clearCheck();
。
关于java - 如何取消选择RadioButton,以便所有选项1、2、3可以再次清除,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42206961/