Reset a Radio button inside a Radio group
问题 How I reset a radio button inside a radio group like the image example below All my radio groups and its radio buttons are created programmatically. I tried to to set OnClickListener to get the radio button value before getting changed but, it didn't help. Edit: I posted the answer below, please check it. 回答1: try this : radioGroup.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() { @Override public void onCheckedChanged(RadioGroup group, @IdRes int checkedId) { if