title: android layout with fluid header
body: <p>I need to create a custom header for my android app.
  I would create something like</p>
  
  <pre><code>+----------------+------------+
  |                |            |
  | background     |   Logo     |
  |  repeat        |   fixed    |
  |                |   right    |
  +----------------+------------+
  |                             |
  |                             |
  |        content (list)       |
  |                             |
  |                             |
  |                             |
  +-----------------------------+
  |        footer repeat        |
  +-----------------------------+
  </code></pre>
  
  <p>Now i have write the xml for the list, but i have a problem with the header because i don't know how can i build it</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent"
  android:orientation="vertical"
  android:background="#fff" &gt;
  
  &lt;RelativeLayout
      android:id="@+id/top_control_bar"
      android:layout_width="fill_parent"
      android:layout_height="88dp" &gt;
  
      &lt;View xmlns:android="http://schemas.android.com/apk/res/android"
          android:layout_width="fill_parent"
          android:layout_height="20dp"
          android:background="@drawable/top_menu_bg_tile"/&gt;
  
      &lt;ImageView
          android:layout_width="wrap_content"
          android:layout_height="88dp"
          android:src="@drawable/top_menu" /&gt;     
  
  &lt;/RelativeLayout&gt;
  
  &lt;RelativeLayout
      android:id="@+id/bottom_control_bar"
      android:layout_width="fill_parent"
      android:layout_height="28dp"
      android:layout_alignParentBottom="true"&gt;
  
      &lt;ImageView
          android:layout_width="match_parent"
          android:layout_height="28dp"
          android:layout_alignParentBottom="true"
          android:src="@drawable/bottom_menu" /&gt;
  
  &lt;/RelativeLayout&gt;
  
  &lt;ListView
      android:id="@android:id/list"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:layout_above="@id/bottom_control_bar"
      android:layout_below="@id/top_control_bar" &gt;
  &lt;/ListView&gt;
  </code></pre>
  
  <p></p>
  
  <p>also i need to know if a relative layout is the best way o maibe i need to write a tablelayout.</p>