title: Sliding drawer Android does not open
body: <p>I have implemented a drawer in android that when open show 4 buttons, but when I try to click it, this never actually happens (the drawer does not open). However, the image resource of the component ImageView handler is changed when i click on drawer. </p>
  
  <p>I have the following XML code:</p>
  
  <pre><code>    &lt;?xml version="1.0" encoding="utf-8"?&gt;
      &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
          android:id="@+id/dynamicCategories"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:background="@drawable/background"
          android:orientation="vertical" &gt;
  
          &lt;LinearLayout
          android:id="@+id/linearLayout1"
          android:layout_width="match_parent"
          android:layout_height="fill_parent"
          android:layout_gravity="center"
          android:layout_marginTop="10dp"
          android:layout_weight="0.1"
          android:orientation="horizontal" &gt;
               .
               .
               .
  
          &lt;/LinearLayout&gt;
  
              &lt;LinearLayout
                  xmlns:android="http://schemas.android.com/apk/res/android"
                  android:id="@+id/LinearLayout01"
                  android:layout_width="fill_parent"
                  android:layout_height="42dp"
                  android:layout_weight="0.1"
                  android:gravity="bottom"
                  android:orientation="vertical" &gt;
  
                  &lt;SlidingDrawer
                      android:id="@+id/slidingDrawer1"
                      android:layout_width="match_parent"
                      android:layout_height="match_parent"
                      android:background="@drawable/bar"
                      android:content="@+id/contentLayout"
                      android:handle="@+id/handle" &gt;
  
                      &lt;ImageView
                          android:id="@+id/handle"
                          android:layout_width="fill_parent"
                          android:layout_height="fill_parent"
                          android:layout_weight="1" /&gt;
  
                      &lt;LinearLayout
                          android:id="@+id/contentLayout"
                          android:layout_width="wrap_content"
                          android:layout_height="wrap_content"
                          android:background="@color/white" &gt;
  
                          &lt;Button
                              android:id="@+id/button1"
                              android:layout_width="wrap_content"
                              android:layout_height="wrap_content"
                              android:layout_weight="1"
                              android:text="Button" /&gt;
  
                          &lt;Button
                              android:id="@+id/button2"
                              android:layout_width="wrap_content"
                              android:layout_height="wrap_content"
                              android:layout_weight="1"
                              android:text="Button" /&gt;
  
                          &lt;Button
                              android:id="@+id/button3"
                              android:layout_width="wrap_content"
                              android:layout_height="wrap_content"
                              android:layout_weight="1"
                              android:text="Button" /&gt;
  
                          &lt;Button
                              android:id="@+id/button4"
                              android:layout_width="wrap_content"
                              android:layout_height="wrap_content"
                              android:layout_weight="1"
                              android:text="Button" /&gt;
                      &lt;/LinearLayout&gt;
                  &lt;/SlidingDrawer&gt;
  
              &lt;/LinearLayout&gt;
  </code></pre>
  
  <p></p>
  
  <p>And the java code:</p>
  
  <pre><code>@Override
  public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(com.android.layout.R.layout.channelprogrammation);
  
      drawer = (SlidingDrawer) findViewById(com.android.layout.R.id.slidingDrawer1);
          // Drawer Programmation
      drawer.setOnDrawerOpenListener(new OnDrawerOpenListener() {
          public void onDrawerOpened() {
              ImageView view = (ImageView) drawer.getHandle();
              // change to bar selected   
                 view.setImageResource(com.android.layout.R.drawable.ic_launcher);
              Toast.makeText(getApplicationContext(), "Is open!", 3000)
                      .show();
              drawer.open();
          }
      });
      drawer.setOnDrawerCloseListener(new OnDrawerCloseListener() {
  
          public void onDrawerClosed() {
              Toast.makeText(getApplicationContext(), "Closed", 3000).show();
              ImageView view = (ImageView) drawer.getHandle();
              view.setImageResource(0);
              drawer.close();
          }
      });
  </code></pre>