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);

 

转载于:https://www.cnblogs.com/hitnoah/p/4673189.html

你可能感兴趣的:(android RadioGroup设置某一个被选中)