title: Android expandable pull down bar - SlidingDrawer like
body: <p>I am trying to achieve sth. that the image below describes best. 
  I tried SlidingDrawer, even WrappingSlidingDrawer proposed by somebody here on SO. 
  But my problems with SlidingDrawer are (1) it occupies a constant height, and I want it to 'shift' the listview below. (2) It expands from down - up and I want it to expand from up to down   (3) it has its header above its body and I want its header below its body.
  How to do it?</p>
  
  <p><img src="https://i.stack.imgur.com/Cr8Wu.png" alt="Drawer hidden and expanded"></p>
  
  <p>My pseudocode follows:</p>
  
  <pre><code>&lt;RelativeLayout
  xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent"
  &gt;
  
  &lt;!-- Header &gt;    
      android:id="@+id/header"  
              android:layout_width="fill_parent"
      android:layout_height="wrap_content"
              android:layout_alignParentTop="true"
      --&gt;    
  
  &lt;!-- Footer &gt;    
      android:id="@+id/footer"  
              android:layout_width="fill_parent"
      android:layout_height="wrap_content"
              android:layout_alignParentBottom="true"
      --&gt;    
  
  &lt;LinearLayout
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:layout_above="@id/footer"
      android:layout_below="@id/header"
      android:orientation="vertical"
      &gt;
  
      &lt;!-- &gt;my.package.WrappingSlidingDrawer --&gt;
      &lt;SlidingDrawer
           android:id="@+id/myDrawerBar"
           android:layout_width="fill_parent"
           android:layout_height="wrap_content"
           android:orientation="vertical"
  
           android:content="@+id/Body"
           android:handle="@+id/Subheader"  &gt;
  
           &lt;LinearLayout
               android:id="@id/Subheader"
               style="@style/Subheader"
               android:layout_width="fill_parent"
               android:layout_height="20dip"&gt;
               &lt;TextView
                   android:id="@+id/SubheaderLabel"
                   android:layout_width="wrap_content"
                   android:layout_height="wrap_content"
                   /&gt;
           &lt;/LinearLayout&gt;
  
           &lt;LinearLayout
               android:id="@id/Body"
               android:layout_width="fill_parent"
               android:layout_height="wrap_content"&gt;
               .....
           &lt;/LinearLayout&gt; 
      &lt;!-- /my.package.WrappingSlidingDrawer--&gt;
      &lt;/SlidingDrawer&gt;    
  
  
      &lt;ListView
          android:id="@+id/myListView"
          android:layout_width="fill_parent"
          android:layout_height="fill_parent"
           /&gt;
  
  &lt;/LinearLayout&gt;        
  
  &lt;/RelativeLayout&gt;
  </code></pre>