android中从左到右的slidedrawer

android中从左到右的slidedrawer,android,Android,有人能举一个简单的例子说明如何在android中从左到右制作slidedrawer吗 我在网上搜索了很多,但找不到合适的解决方案。 等待您的答复。 谢谢:)请使用下面的水平滑动抽屉代码 main.xml <?xml version="1.0" encoding="utf-8"?> <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fi

有人能举一个简单的例子说明如何在android中从左到右制作slidedrawer吗 我在网上搜索了很多,但找不到合适的解决方案。 等待您的答复。
谢谢:)

请使用下面的水平滑动抽屉代码

main.xml

<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent">

    <ImageView 
        android:layout_width="fill_parent"
        android:layout_height="fill_parent" 
        android:src="@drawable/icon"/>

    <SlidingDrawer
        android:id="@+id/drawer"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:orientation="horizontal"
        android:handle="@+id/handle"
        android:content="@+id/content">
        <ImageView 
            android:id="@id/handle"
            android:layout_width="wrap_content"
            android:layout_height="fill_parent" 
            android:src="@drawable/icon"/>
        <LinearLayout
            android:id="@id/content"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:orientation="vertical"
            android:padding="10dp"
            android:background="#55000000">
            <Button
                android:layout_width="fill_parent"
                android:layout_height="wrap_content" 
                android:text=" - Button - "/>
            <Button
                android:layout_width="fill_parent"
                android:layout_height="wrap_content" 
                android:text=" - Button - "/>
            <Button
                android:layout_width="fill_parent"
                android:layout_height="wrap_content" 
                android:text=" - Button - "/>
            <Button
                android:layout_width="fill_parent"
                android:layout_height="wrap_content" 
                android:text=" - Button - "/>
            <Button
                android:layout_width="fill_parent"
                android:layout_height="wrap_content" 
                android:text=" - Button - "/>
            <Button
                android:layout_width="fill_parent"
                android:layout_height="wrap_content" 
                android:text=" - Button - "/>
        </LinearLayout>
    </SlidingDrawer>
</FrameLayout>

请使用下面的示例链接作为参考


在我希望幻灯片从左到右显示之前,我已经完成了此操作。确定从您的第二个链接获得了答案