title: layout within layout android
body: <p><img src="https://i.stack.imgur.com/ESv6O.png" alt="Sorry for the really bad free hand paint skills. Thats a sideways phone, split down the middle with 4 buttons and a text box on each side. My posted code only has 4 buttons and a text box because I cant get the layout right for the other set of buttons.">I want to have several layouts inside a layout so that I can better organize the UI. What I want is the layout to be horizontal. I need the layout to be split in half horizontally down the middle and the 4 buttons and text box to be on one side and copied on the other side as well so it can keep track of two totals. I only have one set of buttons right now because I cant get the layouts right.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="250.0dip"
  android:layout_height="wrap_content"
  android:layout_gravity="center_horizontal"
  android:orientation="vertical" &gt;
  
  &lt;LinearLayout
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_gravity="center_horizontal"
      android:orientation="vertical" &gt;
  
      &lt;LinearLayout
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:orientation="horizontal" &gt;
  
          &lt;Button
              android:id="@id/button_add"
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:layout_gravity="center_horizontal"
              android:layout_weight="1.0"
              android:text="+1" /&gt;
  
          &lt;Button
              android:id="@id/button_add_5"
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:layout_gravity="center_horizontal"
              android:layout_weight="1.0"
              android:text="+5" /&gt;
      &lt;/LinearLayout&gt;
  
      &lt;EditText
          android:id="@id/currentlife"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_gravity="center_horizontal"
          android:gravity="center_horizontal"
          android:inputType="number"
          android:minWidth="120.0dip"
          android:text="20"
          android:textSize="40.0dip" /&gt;
  
      &lt;LinearLayout
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:orientation="horizontal" &gt;
  
          &lt;Button
              android:id="@id/button_minus"
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:layout_gravity="center_horizontal"
              android:layout_weight="1.0"
              android:text="-1" /&gt;
  
          &lt;Button
              android:id="@id/button_minus_5"
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:layout_gravity="center_horizontal"
              android:layout_weight="1.0"
              android:text="-5" /&gt;
      &lt;/LinearLayout&gt;
   &lt;/LinearLayout&gt;
  </code></pre>