📜  radiogroup 获取所选项目 android - Java 代码示例

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

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