Jayson Tamayo Jayson Tamayo - 1 year ago 110
Android Question

Uncheck all RadioButton in a RadioButtonGroup

What I wanted to achieve is this: Right after the activity starts, I want that no RadioButton is selected/checked.

My problem is this: When the activity starts, the first RadioButton is always selected/checked.

I tried

right after initialization of the radiobutton(inside onCreate), but when the activity starts, I can't manually check/select the first radiobutton. Till I select the 2nd or 3rd radio button, I can now select/check the first radio button.

Answer Source
RadioGroup radioGroup = (RadioGroup)findViewById(R.id.radiogroup);
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download