title: How to set only one RadioButton Can be selected at the time in RadioGroup
body: <p>I've created a radio button in radiogroup, but when I try running the apps all radio button can be selected all the time, and how to set only one radiobutton can be selected at one time?</p>
  
  <p>I'm using <strong>Fragment</strong> </p>
  
  <pre><code>RadioGroup radioGroup = (RadioGroup) rootView.findViewById(R.id.RGroup);
          radioGroup.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {
  
              @Override
              public void onCheckedChanged(RadioGroup group, int checkedId) {
                  // find which radio button is selected
                  if(checkedId == R.id.Abdominal) {
                      Toast.makeText(getActivity().getApplicationContext(), "choice: A",
                              Toast.LENGTH_SHORT).show();
                  } else if(checkedId == R.id.Arm) {
                      Toast.makeText(getActivity().getApplicationContext(), "choice: B",
                              Toast.LENGTH_SHORT).show();
                  } else if(checkedId == R.id.Back){
                      Toast.makeText(getActivity().getApplicationContext(), "choice: C",
                              Toast.LENGTH_SHORT).show();
                  } else if(checkedId == R.id.Chest){
                      Toast.makeText(getActivity().getApplicationContext(), "choice: D",
                              Toast.LENGTH_SHORT).show();
                  } else if(checkedId == R.id.Leg){
                      Toast.makeText(getActivity().getApplicationContext(), "choice: E",
                              Toast.LENGTH_SHORT).show();
                  } else if(checkedId == R.id.Shoulder){
                      Toast.makeText(getActivity().getApplicationContext(), "choice: F",
                              Toast.LENGTH_SHORT).show();
                  }
              }
  
          });
  </code></pre>
  
  <p>here my xml code for RG and RB</p>
  
  <pre><code>&lt;RadioGroup
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:id="@+id/RGroup"&gt;
  
                      &lt;TableRow android:weightSum="1"&gt;
                      &lt;RadioButton
                          android:layout_width="wrap_content"
                          android:layout_height="wrap_content"
                          android:text="Abdominal"
                          android:id="@+id/Abdominal"/&gt;
                      &lt;RadioButton
                          android:layout_width="wrap_content"
                          android:layout_height="wrap_content"
                          android:text="Arm"
                          android:id="@+id/Arm"/&gt;
                      &lt;RadioButton
                          android:layout_width="wrap_content"
                          android:layout_height="wrap_content"
                          android:text="Back"
                          android:id="@+id/Back" /&gt;
                          &lt;/TableRow&gt;
                      &lt;TableRow&gt;
                          &lt;RadioButton
                              android:layout_width="wrap_content"
                              android:layout_height="wrap_content"
                              android:text="Chest"
                              android:id="@+id/Chest"/&gt;
                          &lt;RadioButton
                              android:layout_width="wrap_content"
                              android:layout_height="wrap_content"
                              android:text="Leg"
                              android:id="@+id/Leg"/&gt;
                          &lt;RadioButton
                              android:layout_width="wrap_content"
                              android:layout_height="wrap_content"
                              android:text="Shoulder"
                              android:id="@+id/Shoulder"/&gt;
                      &lt;/TableRow&gt;
                  &lt;/RadioGroup&gt;
  </code></pre>
  
  <p><strong>EDITED 1</strong> : Answer :
  If you dont want radio button can be selected in one time, so dont use <strong>Tablerow</strong></p>