final RadioButton red_radio = (RadioButton) findViewById(R.id.red_radio);
final RadioButton gray_radio = (RadioButton) findViewById(R.id.gray_radio);
gray_radio.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
@Override
public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
red_radio.setChecked(false);
}
});
android为RadioButton单独添加checked监听事件
最新推荐文章于 2024-07-28 21:00:23 发布