title: Layout problem: how to place something on top and bottom?
body: <p>I want create a layout, with a horizontal LinearLayout(s) on top and bottom, a ListView fill in middle.</p>
  
  <p>How can I define the main.xml.</p>
  
  <p>I tried to create a layout with horizontal LinearLayout on top, TextView on bottom, a ListView fill in middle; is ok. But after I modified the bottom TextView to LinearLayout, the bottom LinearLayout disappear.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; 
  &lt;LinearLayout 
      xmlns:android="http://schemas.android.com/apk/res/android" 
      android:orientation="vertical" 
      android:layout_width="fill_parent" 
      android:layout_height="fill_parent" 
      &gt;
      &lt;LinearLayout 
          xmlns:android="http://schemas.android.com/apk/res/android" 
          android:layout_width="fill_parent" 
          android:layout_height="wrap_content" 
          android:orientation="horizontal"
          &gt;
          &lt;TextView 
              android:textSize="12px" 
              android:text="something here" 
              android:layout_width="50px" 
              android:layout_height="wrap_content"
              /&gt; 
          &lt;TextView 
              android:textSize="12px" 
              android:text="something here" 
              android:layout_width="fill_parent" 
              android:layout_height="wrap_content"
              /&gt;
      &lt;/LinearLayout&gt; 
  
      &lt;LinearLayout 
          android:orientation="vertical" 
          android:layout_width="fill_parent" 
          android:layout_height="fill_parent" 
          android:gravity="bottom" 
          &gt;
          &lt;ListView 
              android:id="@+id/listbody" 
              android:layout_width="fill_parent" 
              android:layout_height="wrap_content"
              /&gt;
          &lt;LinearLayout 
              android:orientation="horizontal" 
              android:layout_height="wrap_content" 
              android:layout_width="fill_parent" 
              &gt; 
              &lt;TextView 
                  android:layout_height="wrap_content" 
                  android:layout_width="0dip" 
                  android:layout_weight="1" 
                  android:textSize="12px" 
                  android:text="50%" 
                  /&gt; 
              &lt;TextView 
                  android:layout_height="wrap_content" 
                  android:layout_width="0dip" 
                  android:layout_weight="1" 
                  android:textSize="12px" 
                  android:text="50%" 
                  /&gt; 
          &lt;/LinearLayout&gt; 
      &lt;/LinearLayout&gt; 
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>Anybody can tell advise?
  Please help.</p>