It is better to set OnClickListener for a RadioGroup and update the View accordingly,
RadioGroup radioGroup = (RadioGroup) findViewById(R.id.someRadioGroup);
radioGroup.setOnCheckedChangeListener(new OnCheckedChangeListener()
{
public void onCheckedChanged(RadioGroup group, int checkedId) {
// checkedId is the RadioButton selected
// Do something here..
}
});
No comments:
Post a Comment