1

I want to slide SlidingDrawer from left to right, I have an option: I can define android:rotation = 90 in SlidingDrawer tag in xml file, but rotation tag works with Android 3.0

So i m tired to slide this from left to right, Is there any one who helps Me for this?

enter image description here

enter image description here

like this, Thanx in advance

4

2 回答 2

0

看看这个漂亮的样本:

http://blog.sephiroth.it/2011/03/29/widget-slidingdrawer-top-to-bottom/

使其从左到右,并使用您希望使用的布局。

关于视图的大小,将其设置为 MultiDirectionSlidingDrawer 宽度。

于 2013-04-28T13:07:18.413 回答
0

使用此代码...

<?xml version="1.0" encoding="utf-8"?>
    <LinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="horizontal"
    android:gravity="center_vertical"
    android:background="@drawable/logo11"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent">
    <com.sliding.TransparentPanel
    android:id="@+id/popup_window"
    android:orientation="vertical"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:gravity="left"
    android:padding="1px"
    android:background="#ffffff">
    <CheckBox android:id="@+id/check1"
    android:layout_width="wrap_content"
    android:textColor="#FFFFFF"
    android:layout_height="wrap_content" android:text="Satellite View" />
    <CheckBox android:id="@+id/check2"
    android:layout_width="wrap_content"
    android:textColor="#FFFFFF"
    android:layout_height="wrap_content" android:text="Street View" />
    <CheckBox android:id="@+id/check3"
    android:textColor="#FFFFFF"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content" android:text="Traffic" />
    </com.sliding.TransparentPanel>
    <Button android:id="@+id/show_popup_button"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:background="@drawable/slid4_n"/>
    </LinearLayout>
于 2013-03-06T05:37:03.183 回答