views:

5541

answers:

3

I'm using a slidingDrawer in my application that has its handler placed at the bottom when in portrait mode. When the user switches to landscape mode (widescreen) I would like to have the handler located on the left. When I change the orientation from vertical to horizontal, the handler is placed on the right.

I have defined my layout XML like this:

<SlidingDrawer
    android:id="@+id/l_drawer"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:handle="@+id/l_handle"
    android:content="@+id/l_content"
    android:orientation="horizontal"
    android:layout_gravity="left"
    >

Anyone have an idea for how to make it slide from left to right ?

+1  A: 

I don't think you can, other than perhaps by grabbing the SlidingDrawer source code, making changes to it, and using your modified version. You similarly cannot make a SlidingDrawer that descends from the top.

CommonsWare
After more googling around, I still havn't found any examples or ways to do this, so yes, i agree, there is no way to do this with the android sdk...
PHP_Jedi
+2  A: 

Actually I found some code that implements something similar.

Blog with Screenshots: http://androidblogger.blogspot.com/2009/01/sliding-drawer-again.html

Forum discussion: http://www.anddev.org/viewtopic.php?p=16622

Checkout code from SVN: http://code.google.com/p/android-misc-widgets/

PHP_Jedi
@PHP_Jedi i am also wanting to implement HORIZONTAL slider and i have checked the link of SVN, but there is no any project/code available
PM - Paresh Mayani
A: 

There is no code at the link you suggested?

sam