I'm just playing around with the new DrawerLayout recently included in support library. I've implemented just a simple to example with multiple drawers, while I was using START and END as gravities it all worked like a charm, but when trying to add a drawer with TOP or BOTTOM gravities it crashes.

Is it possible to use it for sliding drawers from top and/or bottom?

Below is the full code for my activity and the xml layout in a working state; If I try to change this:

<ListView android:id="@+id/right_drawer"
                  android:layout_width="240dp"
                  android:layout_height="match_parent"
                  android:layout_gravity="end"
                  android:choiceMode="singleChoice"
                  android:divider="@android:color/transparent"
                  android:dividerHeight="0dp"
                  android:background="#007799"/>

into this (notice changes in layout_width, layout_height and layout_gravity):

<ListView android:id="@+id/right_drawer"
                  android:layout_width="match_parent"
                  android:layout_height="300dp"
                  android:layout_gravity="bottom"
                  android:choiceMode="singleChoice"
                  android:divider="@android:color/transparent"
                  android:dividerHeight="0dp"
                  android:background="#007799"/>

and the line:

this.drawer.openDrawer(GravityCompat.START);

info this one:

this.drawer.openDrawer(Gravity.BOTTOM);

is when I get the following error:

05-16 05:22:33.981    1503-1503/es.luixal.test                 E/AndroidRuntime: FATAL EXCEPTION: main
        java.lang.RuntimeException: Unable to start activity ComponentInfo{es.luixal.test/es.luixal.test.MainActivit
Edit
Report