Search code examples
androidhandleslidingdrawer

SlidingDrawer with no handle?


Consider the SlidingDrawer in Android. All samples I've seen have a large button as a handle. Cool. But, I want an invisible handle, just like the one in the Android main window!

Whenever I drag from the bottom of my view, the slider should come up (I want it to slide from bottom to top). And no handle should ever be drawn!

How can this be accomplished in Android 2.2?


Solution

  • This did the trick. I set the SlidingDrawer handle to the following View:

     <View
                android:id="@id/handle"
                android:layout_width="match_parent"
                android:layout_height="3dip" />