如何实现代码控制RadioGroup中某一个按钮选中
如何实现代码控制RadioGroup中某一个按钮选中
日期:2021-12-27 15:03:56 人气:1
mButton1 = (RadioButton)findViewById(R.id.radioButton1);
mButton2 = (RadioButton)findViewById(R.id.radioButton2);
mButton1.setOnCheckedChangeListener(new OnCheckedChangeListener() {
@Override
public void onCheckedChanged(CompoundButto
mButton2 = (RadioButton)findViewById(R.id.radioButton2);
mButton1.setOnCheckedChangeListener(new OnCheckedChangeListener() {
@Override
public void onCheckedChanged(CompoundButto