title: How to align radiobuttons in a radiogroup
body: <p>I have a radiogroup in which I have 4 radiobuttons in it.I want them to be align as a two horizontal lines i.e two radiobuttons horizontally and other two radiobuttons horizontally and below the first horizontal radiobuttons.</p>
  
  <p>How can i accomplish this without changing its functionality</p>
  
  <p>It means only one radiobutton can be selected.</p>
  
  <p>Here's my simple code:</p>
  
  <pre><code>&lt;RadioGroup
      android:id="@+id/radiogroup_relation_options"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:layout_below="@id/HeadingText"
      android:background="#4269c6" &gt;
  
      &lt;LinearLayout
          android:layout_width="match_parent"
          android:layout_height="wrap_content" &gt;
  
          &lt;LinearLayout
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_weight="1"
              android:orientation="vertical" &gt;
  
              &lt;RadioButton
                  android:id="@+id/radiobutton_friend"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_marginLeft="10dp"
                  android:layout_marginTop="5dp"
                  android:button="@drawable/custom_radiobutton"
                  android:padding="5dp"
                  android:paddingLeft="10dp"
                  android:text="Friend"
                  android:textSize="15sp" /&gt;
  
              &lt;RadioButton
                  android:id="@+id/radiobutton_business"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_marginLeft="10dp"
                  android:layout_marginTop="5dp"
                  android:button="@drawable/custom_radiobutton"
                  android:padding="5dp"
                  android:paddingLeft="10dp"
                  android:text="We&amp;apos;ve done Business Together"
                  android:textSize="15sp" /&gt;
          &lt;/LinearLayout&gt;
  
          &lt;LinearLayout
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_weight="1"
              android:orientation="vertical" &gt;
  
              &lt;RadioButton
                  android:id="@+id/radiobutton_colleague"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_marginLeft="10dp"
                  android:layout_marginTop="5dp"
                  android:button="@drawable/custom_radiobutton"
                  android:padding="5dp"
                  android:paddingLeft="10dp"
                  android:text="Colleague"
                  android:textSize="15sp" /&gt;
  
              &lt;RadioButton
                  android:id="@+id/radiobutton_other"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_marginLeft="10dp"
                  android:layout_marginTop="5dp"
                  android:button="@drawable/custom_radiobutton"
                  android:padding="5dp"
                  android:paddingLeft="10dp"
                  android:text="Other"
                  android:textSize="15sp" /&gt;
          &lt;/LinearLayout&gt;
      &lt;/LinearLayout&gt;
  &lt;/RadioGroup&gt;
  </code></pre>