title: aligning radio buttons in android
body: <h2>I am trying to re arrange the radio buttons</h2>
  
  <p><strong>I have a output</strong> </p>
  
  <p><img src="https://i.stack.imgur.com/OpQSj.png" alt="enter image description here"></p>
  
  <p><strong>search_page.xml</strong></p>
  
  <pre><code>&lt;LinearLayout
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:orientation="horizontal"
          android:padding="10dp"
          android:background="#E1E1E1"
          android:weightSum="1" &gt;
  
          &lt;TextView
              android:layout_width="0dp"
              android:layout_height="wrap_content"
              android:layout_weight=".25"
              android:text="City" /&gt;
  
          &lt;EditText
              android:layout_width="0dp"
              android:layout_height="wrap_content"
              android:layout_marginLeft="10dp"
              android:background="@drawable/rounded_edittext"
              android:layout_weight=".75" /&gt;
      &lt;/LinearLayout&gt;
  
      &lt;View
          android:layout_width="fill_parent"
          android:layout_height="1dp"
          android:background="@android:color/black" /&gt;
  
      &lt;LinearLayout
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:onClick="selectDate"
          android:orientation="horizontal"
          android:padding="10dp"
          android:background="#E1E1E1"
          android:weightSum="1" &gt;
  
          &lt;TextView
              android:layout_width="0dp"
              android:layout_height="wrap_content"
              android:layout_weight=".25"
              android:text="date" /&gt;
  
          &lt;EditText
              android:id="@+id/DATE_EDIT_TEXT_ID"
              android:layout_width="0dp"
              android:layout_height="wrap_content"
              android:layout_marginLeft="10dp"
              android:layout_weight=".75"
              android:background="@drawable/rounded_edittext"
              android:onClick="selectDate" /&gt;
      &lt;/LinearLayout&gt;
  
      &lt;View
          android:layout_width="fill_parent"
          android:layout_height="1dp"
          android:background="@android:color/black" /&gt;
  
      &lt;LinearLayout
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:orientation="horizontal"
          android:padding="10dp"
          android:background="#E1E1E1"
          android:weightSum="1" &gt;
  
          &lt;TextView
              android:layout_width="0dp"
              android:layout_height="wrap_content"
              android:layout_weight=".25"
              android:text="type" /&gt;
  
          &lt;RadioGroup
          android:id="@+id/radioGroup1"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:orientation="horizontal" &gt;
  
          &lt;RadioButton
              android:id="@+id/radio0"
              android:background="@drawable/yourbuttonbackground"
              android:button="@android:color/transparent"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:checked="true"
              android:text="Breakfast" /&gt;
  
          &lt;RadioButton
              android:id="@+id/radio1"
              android:background="@drawable/yourbuttonbackground"
              android:button="@android:color/transparent"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:text="Lunch" /&gt;
      &lt;/RadioGroup&gt;
  
          &lt;RadioButton
              android:id="@+id/radio2"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:background="@drawable/yourbuttonbackground"
              android:button="@android:color/transparent"
              android:text="Dinner" /&gt;
  
      &lt;/LinearLayout&gt;
  </code></pre>
  
  <p><strong>to space the radio buttons in order as below !</strong></p>
  
  <p><img src="https://i.stack.imgur.com/Wb6XF.png" alt="enter image description here"></p>
  
  <p>Any ideas !</p>