Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有三个单选按钮和一个方法,每次单击“下一步”按钮时。下一条记录将使用 setonclickListener 显示。目标是清除每条记录后的所有单选按钮。
答案很简单,我尝试使用 setChecked(false) 更改值;对于每个单选按钮,但每次我单击该按钮时它都会被清除。我正在寻找的答案是clearCheck()RadioGroup 类,这相当于重置。
clearCheck()