Android Is it possible to have multiple SlidingDrawer

Something new for many things in android, and here is one.

Game with Android SlidingDrawer widgets.
I'd love to have 4 of them on the right side of the screen.
Each of them fills the screen when you pull them out.

I am trying to create 4 of them in my R.layout.main , but only one of them.

Am I wrong here?

here is an xml file with two SlidingDrawer
trying to get both to show on the right side

 <LinearLayout android:id="@+id/LinearLayout01" android:layout_width="fill_parent" android:layout_height="wrap_content" xmlns:android="http://schemas.android.com/apk/res/android" > <SlidingDrawer android:id="@+id/SlidingDrawer2" android:layout_width="wrap_content" android:handle="@+id/slideHandleButton2" android:content="@+id/contentLayout2" android:layout_weight="1" android:layout_height="wrap_content" android:orientation="horizontal"> <Button android:id="@+id/slideHandleButton2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:topOffset="10dip" android:background="@drawable/icon"> </Button> <RelativeLayout android:layout_width="wrap_content" android:id="@+id/contentLayout2" android:orientation="horizontal" android:gravity="center|top" android:padding="10dip" android:background="#C0C0C0" android:layout_height="wrap_content"> <ImageView android:id="@+id/f" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Content" android:src="@drawable/arrow_top_right">> </ImageView> </RelativeLayout> </SlidingDrawer> <SlidingDrawer android:id="@+id/SlidingDrawer" android:layout_width="wrap_content" android:handle="@+id/slideHandleButton" android:content="@+id/contentLayout" android:orientation="horizontal" android:layout_weight="1" android:layout_height="wrap_content" > <Button android:id="@+id/slideHandleButton" android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="@drawable/icon" android:topOffset="40dip"> </Button> <RelativeLayout android:layout_width="wrap_content" android:id="@+id/contentLayout" android:orientation="horizontal" android:padding="10dip" android:background="#C0C0C0" android:layout_height="wrap_content"> <ImageView android:id="@+id/Button03" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Content" android:src="@drawable/arrow_top_right"> </ImageView> </RelativeLayout> </SlidingDrawer> </LinearLayout> 
+4
source share
1 answer

I do not think this is just one. I think these two are displayed one on top of the other. Try to compensate the handles so that you can see both handles. Try adding this attribute with different offsets to your sliding devices:

 android:topOffset="10dip" 

If this does not work, try adding this to both sliding devices:

 android:layout_weight="1" android:layout_height="0" 
+4
source

All Articles