I have 2 Radio groups , and each radio group contains 2 Radiobuttons. I am trying to toggle between these 2 groups but so far unsuccessful. Any help would be appreciated.

---

```
        myGroup2 = (RadioGroup) findViewById(R.id.radioGroup2);
        myGroup3 = (RadioGroup) findViewById(R.id.radioGroup3);
        myGroup3.clearCheck();
        myGroup2.clearCheck();

        myGroup2.setOnCheckedChangeListener(this);
        myGroup3.setOnCheckedChangeListener(this);

myGroup2.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {
            // @Override
            public void onCheckedChanged(RadioGroup group, int checkedId) {

                    myGroup3.clearCheck();
            }
        });
    myGroup3.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {
            @Override
            public void onCheckedChanged(RadioGroup group, int checkedId) {

                    myGroup2.clearCheck();
            }
        });

```