Q: Android studio. Radio button group inside another radio button group : I am programming my first application in android studio. User should select the training type (muscle gain, weight loss, own program) and then choose sex (male/female). So, 6 possible outcomes. 2 respective radio groups. After choosing necessary options user hits confirm button and goes to necessary screen with training type (using one of 6 addListeneronbutton methods). But app does not react after installation.
Would you please tell what I'm doing wrong?


    public void onRadioButtonClicked(View view) {
        switch (view.getId()) {
            case R.id.Muscles:
                    switch (view.getId()){
                        case R.id.Male:
                            addListenerOnButton();
                        case R.id.Female:
                            addListenerOnButton2();
                    }
                    break;
            case R.id.Diet:
                switch (view.getId()){
                    case R.id.Male:
                        addListenerOnButton3();
                    case R.id.Female:
                        addListenerOnButton4();
                }
                break;
            case R.id.Own:
                switch (view.getId()){
                    case R.id.Male:
                        addListenerOnButton3();
                    case R.id.Female:
                        addListenerOnButton4();
                }
                break;
        }
    }

Respective xml file has following code for choosing sex:

    <RadioGroup
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:orientation="vertical"
        android:id="@+id/radioGroup">
        <RadioButton
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:id="@+id/Male"
            android:text="Male"
            android:onClick="onRadioButtonClicked"/>
        <RadioButton
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:checked="true"
            android:id="@+id/Female"
            android:text="Female"
            android:onclick="onRadioButtonClicked"/>
    </RadioGroup>

Inside the same xml second radio group for choosing training type:

        <TableRow
        android:layout_width="match_parent"
        android:layout_height="match_parent">
        <RadioGroup
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:orientation="vertical"
            android:id="@+id/radioGroup2">
            <RadioButton
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:checked="true"
                android:id="@+id/Muscles"
                android:text="@string/Muscles"
                android:onClick="onRadioButtonClicked"/>
            <RadioButton
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:id="@+id/Diet"
                android:text="@string/Fat"
                android:onClick="onRadioButtonClicked"/>
            <RadioButton
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:id="@+id/Own"
                android:text="@string/Own"
                android:onClick="onRadioButtonClicked"/>
        </RadioGroup>

