title: How to animate Sliding Drawer?
body: <p><img src="https://i.stack.imgur.com/AxiQQ.png" alt="My activity"></p>
  
  <p>When i push button start i need to get this:</p>
  
  <p>:<img src="https://i.stack.imgur.com/aWWCm.png" alt="enter image description here"></p>
  
  <p>So, i have sliding drawer which i need to animate by clicking start button. As you can see context of sliding drawer contains seek bar and 3 buttons. When user click start button animation should start that should hide buttons. </p>
  
  <p>My xml file looks like this:
      
      </p>
  
  <pre><code>&lt;SlidingDrawer
      android:id="@+id/slidingDrawer1"
      android:layout_width="match_parent"
      android:layout_height="140dp"
      android:layout_alignParentBottom="true"
      android:layout_x="3dp"
      android:layout_y="374dp"
      android:content="@+id/content"
      android:handle="@+id/handle" &gt;
  
      &lt;Button
          android:id="@+id/handle"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:text="Handle" /&gt;
  
      &lt;RelativeLayout
          android:id="@+id/content"
          android:layout_width="match_parent"
          android:layout_height="84dp" &gt;
  
          &lt;LinearLayout
              android:id="@+id/linearLayout1"
              android:layout_width="wrap_content"
              android:layout_height="47dp"
              android:layout_alignParentBottom="true"
              android:layout_alignParentLeft="true"
              android:layout_alignParentRight="true"
              android:background="@drawable/bcg9" &gt;
  
              &lt;Button
                  android:id="@+id/button1"
                  android:layout_width="106.6dp"
                  android:layout_height="match_parent"
                  android:layout_alignParentBottom="true"
                  android:layout_alignParentLeft="true"
                  android:layout_marginTop="0dp"
                  android:background="@drawable/rev" /&gt;
  
              &lt;Button
                  android:id="@+id/button2"
                  android:layout_width="106.6dp"
                  android:layout_height="match_parent"
                  android:layout_marginTop="0dp"
                  android:background="@drawable/pause" /&gt;
  
              &lt;Button
                  android:id="@+id/button3"
                  android:layout_width="106.6dp"
                  android:layout_height="match_parent"
                  android:layout_alignParentBottom="true"
                  android:layout_marginTop="0dp"
                  android:layout_toRightOf="@+id/button2"
                  android:layout_weight="1"
                  android:background="@drawable/forv" /&gt;
          &lt;/LinearLayout&gt;
  
          &lt;SeekBar
              android:id="@+id/seekBar1"
              android:layout_width="match_parent"
              android:layout_height="11dp"
              android:layout_alignParentLeft="true"
              android:layout_alignParentRight="true"
              android:layout_centerVertical="true"
              android:background="@null"
              android:progressDrawable="@drawable/seekbar_progress"
              android:thumb="@drawable/thumb_drawable" /&gt;
      &lt;/RelativeLayout&gt;
  &lt;/SlidingDrawer&gt;
  
  &lt;SeekBar
      android:id="@+id/seekBar2"
      android:layout_width="match_parent"
      android:layout_height="15px"
      android:layout_alignParentLeft="true"
      android:layout_alignParentTop="true"
      android:layout_marginTop="62dp"
      android:maxHeight="3dp"
      android:progressDrawable="@drawable/seekbar_progress"
      android:thumb="@drawable/thumb_drawable" /&gt;
  
  &lt;Button
      android:id="@+id/animate"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_alignParentLeft="true"
      android:layout_alignParentTop="true"
      android:text="start" /&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>I try to use translate animation but when i click start button sliding drawer goes down, actually it disappear.</p>
  
  <pre><code>int topOfsd = getWindowManager().getDefaultDisplay().getHeight()-sd.getHeight();
                  Animation animation = new TranslateAnimation(0,            0,topOfsd,topOfsd-100);
                  animation.setDuration(1000);
                  animation.setFillAfter(true);
                  sd.startAnimation(animation);
                  sd.setVisibility(0);        
  </code></pre>
  
  <p>How could this be done?</p>