android RadioGroup设置某一个被选中

见码滚

1                 mPriorityRadioGroup.clearCheck();

2                 mStatusRadioGroup.clearCheck();

3                 RadioButton r1 = (RadioButton)findViewById(R.id.statusNotDone);

4                 r1.setChecked(true);

5                 RadioButton r2 = (RadioButton)findViewById(R.id.medPriority);

6                 r2.setChecked(true);

 

你可能感兴趣的:(android)