title: Android radio button set vertically and horizontally both way under same radio group
body: <p>Is there any way to set radio button vertically and horizontally both way under same radio group. Like two separated row? like this image..</p>
  
  <p><a href="https://i.stack.imgur.com/4l3OW.png" rel="nofollow noreferrer">https://i.stack.imgur.com/4l3OW.png</a></p>
  
  <pre><code>        &lt;RadioGroup
      android:id="@+id/radiotheme"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:layout_marginLeft="5dp"
      android:layout_marginTop="10dp"&gt;
  
      &lt;LinearLayout
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:orientation="horizontal"
          android:weightSum="2"&gt;
  
          &lt;RadioButton
              android:id="@+id/radiothemeblack"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_weight="1"
              android:textSize="15sp"
  
              android:text="@string/theme_black" /&gt;
  
          &lt;RadioButton
              android:id="@+id/radiothemewhite"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_marginTop="5dp"
              android:layout_weight="1"
              android:textSize="15sp"
              android:text="@string/theme_white" /&gt;
  
      &lt;/LinearLayout&gt;
  
      &lt;LinearLayout
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:orientation="horizontal"
          android:weightSum="2"&gt;
  
      &lt;RadioButton
          android:id="@+id/radiothemepink"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_marginTop="5dp"
          android:layout_weight="1"
          android:textSize="15sp"
          android:text="@string/theme_pink" /&gt;
  
      &lt;RadioButton
          android:id="@+id/radiothemeblue"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_marginTop="5dp"
          android:layout_weight="1"
          android:textSize="15sp"
          android:text="@string/theme_blue" /&gt;
  
      &lt;/LinearLayout&gt;
  
      &lt;LinearLayout
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:orientation="horizontal"
          android:weightSum="2"&gt;
  
      &lt;RadioButton
          android:id="@+id/radiothemegreen"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_marginTop="5dp"
          android:layout_weight="1"
          android:textSize="15sp"
          android:text="@string/theme_green" /&gt;
  
          &lt;RadioButton
              android:id="@+id/radiothemebiolet"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_marginTop="5dp"
              android:layout_weight="1"
              android:textSize="15sp"
              android:text="@string/theme_green" /&gt;
  
      &lt;/LinearLayout&gt;
  
  &lt;/RadioGroup&gt;
  </code></pre>
  
  <p>I try this way by xml. but problem was here all button can selected in same time. how i do this work properly?</p>