📌  相关文章
📜  android studio 获取选中的单选按钮 - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:11.145000             🧑  作者: Mango

代码示例1
int radioButtonID = radioButtonGroup.getCheckedRadioButtonId();
View radioButton = radioButtonGroup.findViewById(radioButtonID);
int idx = radioButtonGroup.indexOfChild(radioButton);