title: Multiple row Radio buttons in android?
body: <p>I am having problem in having radioButtons in multiple Rows</p>
  
  <p>this is my xml</p>
  
  <pre><code>           &lt;RadioGroup android:layout_width="fill_parent"
                 android:layout_height="wrap_content"
                  android:orientation="vertical"
                   &gt;
    &lt;RadioGroup android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:orientation="horizontal"
           &gt;
        &lt;RadioButton
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:id="@+id/radio_one0Id"
            android:textSize="13sp"
            android:layout_weight="1"
            android:onClick="oneRadioButtonClicked"
         /&gt;
        &lt;RadioButton
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
              android:textSize="13sp"
            android:text="5%" 
            android:id="@+id/radio_one5Id"
            android:layout_weight="1"
            android:onClick="oneRadioButtonClicked"
           /&gt;
        &lt;RadioButton
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:text="10%" 
            android:textSize="13sp"
            android:layout_weight="1"
            android:id="@+id/radio_one10Id"
            android:onClick="oneRadioButtonClicked"
         /&gt;
        &lt;RadioButton
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:text="20%" 
            android:layout_weight="1"
            android:textSize="13sp"
            android:onClick="oneRadioButtonClicked"
            android:id="@+id/radio_one20Id"
           /&gt;
        &lt;RadioButton
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:text="35%" 
            android:id="@+id/radio_one35Id"
            android:textSize="13sp"
            android:onClick="oneRadioButtonClicked"
            android:layout_weight="1"
         /&gt;
        &lt;RadioButton
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:text="50%" 
            android:textSize="13sp"
            android:id="@+id/radio_one50Id"
            android:onClick="oneRadioButtonClicked"
            android:layout_weight="1"
           /&gt;
  
        &lt;/RadioGroup&gt;
  
          &lt;RadioGroup android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:orientation="horizontal"&gt;
           &lt;RadioButton
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:text="65%" 
            android:textSize="13sp"
            android:id="@+id/radio_one65Id"
            android:onClick="oneRadioButtonClicked"
            android:layout_weight="1"
         /&gt;
        &lt;RadioButton
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:text="75%" 
            android:textSize="13sp"
            android:layout_weight="1"
            android:id="@+id/radio_one75Id"
            android:onClick="oneRadioButtonClicked"
           /&gt;
         &lt;RadioButton
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:text="85%" 
            android:textSize="13sp"
            android:id="@+id/radio_one85Id"
            android:layout_weight="1"
            android:onClick="oneRadioButtonClicked"
           /&gt;
          &lt;RadioButton
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
           android:textSize="13sp"
            android:text="95%" 
            android:id="@+id/radio_one95Id"
            android:layout_weight="1"
            android:onClick="oneRadioButtonClicked"
           /&gt;
           &lt;RadioButton
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:text="100%" 
            android:id="@+id/radio_one100Id"
            android:textSize="13sp"
            android:layout_weight="1"
            android:onClick="oneRadioButtonClicked"
           /&gt;
                         &lt;/RadioGroup&gt;
        &lt;/RadioGroup&gt;
  </code></pre>
  
  <p>this is code</p>
  
  <pre><code>public void oneRadioButtonClicked(View view) {
      // Is the button now checked?
      boolean checked = ((RadioButton) view).isChecked();
  
      switch(view.getId()) {
          case R.id.radio_one0Id:
              if (checked)
                  one = "0";
              break;
          case R.id.radio_one5Id:
              if (checked)
                  one = "5";
              break;
          case R.id.radio_one10Id:
              if (checked)
                  one = "10";
              break;
          case R.id.radio_one20Id:
              if (checked)
                  one = "20";
              break;
          case R.id.radio_one35Id:
              if (checked)
                  one = "35";
              break;
          case R.id.radio_one50Id:
              if (checked)
                  one = "50";
              break;
          case R.id.radio_one65Id:
              if (checked)
                  one = "65";
              break;
          case R.id.radio_one75Id:
              if (checked)
                  one = "75";
              break;
          case R.id.radio_one85Id:
              if (checked)
                  one = "85";
              break;
          case R.id.radio_one95Id:
              if (checked)
                  one = "95";
              break;
          case R.id.radio_one100Id:
              if (checked)
                  one = "100";
              break;
           default:
               System.out.println("default");
      }
  }
  </code></pre>
  
  <p>this will look like<img src="https://i.stack.imgur.com/Cb0IO.png" alt="enter image description here"></p>
  
  <p>it will select both the buttons in 2 rows, i want it to select only one button in those rows, thanks for any help</p>