SlidingDrawer hides content out of the screen and allows the user to drag a handle to bring the content on screen.
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/hello"
/>
<SlidingDrawer
android:id="@+id/drawer"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:handle="@+id/handle"
android:content="@+id/content">
<ImageView
android:id="@id/handle"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:src="@drawable/icon"/>
<LinearLayout
android:id="@id/content"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical">
<Button
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:text="Big Big Button"/>
</LinearLayout>
</SlidingDrawer>
</LinearLayout>
![Example of SlidingDrawer Example of SlidingDrawer](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhu8STPXfOcmK_1qqR2izVNQp7yZAwJtCY35bsqugruH6DFY0pdJ5JZ2rBZmGOxu-GKeTi32IOmMQbEJsTA9NsMtHrXqNUFXf414Lff7o0QvYygZHWtbT_0s0Z9RjYW49ukZVxh1fhZhKO0/s400/Android_SlidingDrawer_01.png)
but how to implement the same from top to bottom.Can u plz instruct us ..
ReplyDeleteHere's some useful links for doing it top to bottom:
ReplyDeletehttp://stackoverflow.com/questions/11863343/making-a-slidable-view-from-top-to-down-similar-to-the-one-in-android
http://stackoverflow.com/questions/1137350/how-to-make-an-android-slidingdrawer-slide-out-from-the-left
http://blog.sephiroth.it/2011/03/29/widget-slidingdrawer-top-to-bottom