how can i set RadioGroup unchecked by default in android?

Mohammed mansoor picture Mohammed mansoor · Mar 21, 2013 · Viewed 9.5k times · Source

I am doing an app to conduct simple quiz.I have given the answers are multiple choice using RadioGroup. So on loading each question how can I set RadioGroup unchecked by default ?

Answer

Obl Tobl picture Obl Tobl · Mar 21, 2013

Just set the checked Property in your XML for every RadioButton to false:

android:checked="false"

That should solve the issue.