title: android how can i close a SlidingDrawer that was opened manually
body: <p>Been searching for a solution and i partially got it but still need to ask..<br>
  I use my finger to open the drawer.<br>
  Through code im closing the drawer after user point on any of the icons.  </p>
  
  <p>the width=110 is because there are 3 icons in the drawer and i want them to stay
  on the right side just like the picture show below.</p>
  
  <p>im using this</p>
  
  <pre><code>&lt;translate android:fromXDelta="80%" android:toXDelta="100%" android:duration="300"/&gt;
  </code></pre>
  
  <p>It kind of works but after it closes, it pops out again. why..</p>
  
  <p>Also it's not good to write the width=110 in stone, but i could not come up with
  a better solution at this time. the text_ball, delete_ball and plus_ball are all
  a set of ldpi, hdpi and mdpi.</p>
  
  <p>sorry if this sounds like two question. just trying to input as much info as possible for cooking the right answer. </p>
  
  <p><img src="https://i.stack.imgur.com/ewgEY.png" alt=""></p>
  
  <pre><code>&lt;LinearLayout android:id="@+id/linearLayoutSlidingDrawerRight"
      android:layout_width="110dip"
      android:layout_height="wrap_content"
      xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_alignParentRight="true"
      android:layout_centerVertical="true"
      &gt;
  
      &lt;com.bent.solid.editimage.WrappingSlidingDrawer android:id="@+id/slidingDrawerRight"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:handle="@+id/slideHandleButtonRight"
          android:content="@+id/contentLayout2"
          android:orientation="horizontal"
          android:background="@null"&gt;
  
          &lt;ImageButton android:id="@+id/slideHandleButtonRight"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:background="@drawable/icon"
              android:onClick="btnSlidingDrawerHandler"&gt;
          &lt;/ImageButton&gt;
  
          &lt;RelativeLayout
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:id="@+id/contentLayout2"
              android:orientation="vertical"
              android:background="@null"
  
              &gt;
  
              &lt;ImageButton android:id="@+id/btn_A"
                  android:layout_height="60dip"
                  android:layout_width="60dip"
                  android:text="Button_A"
                  android:background="@android:color/transparent"
                  android:src="@drawable/plus_ball"
                  android:onClick="btnAListener"
                  android:gravity="right"
                  android:scaleType="fitXY"&gt;
              &lt;/ImageButton&gt;
  
              &lt;ImageButton android:id="@+id/btn_B"
                  android:layout_height="60dip"
                  android:layout_width="60dip"
                  android:layout_below="@+id/btn_A"
                  android:text="Button_B"
                  android:background="@android:color/transparent"
                  android:src="@drawable/text_ball"
                  android:gravity="right"
                  android:onClick="btnBListener"
                  android:scaleType="fitXY"&gt;
              &lt;/ImageButton&gt;
  
              &lt;ImageButton android:id="@+id/btn_C"
                  android:layout_height="60dip"
                  android:layout_width="60dip"
                  android:layout_below="@+id/btn_B"
                  android:text="Button_B"
                  android:background="@android:color/transparent"
                  android:src="@drawable/delete_ball"
                  android:gravity="right"
                  android:onClick="btnCListener"
                  android:scaleType="fitXY"&gt;
              &lt;/ImageButton&gt;
  
          &lt;/RelativeLayout&gt;
      &lt;/com.bent.solid.editimage.WrappingSlidingDrawer&gt;
  &lt;/LinearLayout&gt;
  </code></pre>