Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/219.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/django/21.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 抽屉布局双抽屉锁右抽屉_Android_Navigation Drawer_Drawerlayout - Fatal编程技术网

Android 抽屉布局双抽屉锁右抽屉

Android 抽屉布局双抽屉锁右抽屉,android,navigation-drawer,drawerlayout,Android,Navigation Drawer,Drawerlayout,我用的是双抽屉布局。一个抽屉在左边,一个抽屉在右边。 在左边的抽屉里,我有一些导航的东西。在右边的抽屉里,我有一些详细的信息 我不想在从右边缘向左滑动时锁定右抽屉,以免用户打开抽屉 以下是我的XML的精简版本: <android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/drawer_layout" android:la

我用的是双抽屉布局。一个抽屉在左边,一个抽屉在右边。 在左边的抽屉里,我有一些导航的东西。在右边的抽屉里,我有一些详细的信息

我不想在从右边缘向左滑动时锁定右抽屉,以免用户打开抽屉

以下是我的XML的精简版本:

<android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/drawer_layout"
android:layout_width="match_parent"
android:layout_height="match_parent" >

<!-- Main Content -->

<FrameLayout
    android:id="@+id/content_frame"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@color/main_bkgnd"
    android:choiceMode="singleChoice"
    android:divider="@color/transparent"
    android:dividerHeight="@dimen/zero"
    android:paddingLeft="@dimen/main.padding"
    android:paddingRight="@dimen/main.padding" >

    <!-- Some other elements -->

</FrameLayout>

<!-- Menü -->

<FrameLayout
    android:id="@+id/menu_drawer"
    android:layout_width="@dimen/menu.width"
    android:layout_height="fill_parent"
    android:layout_gravity="start"
    android:background="@color/drawer_bkgnd"
    android:choiceMode="singleChoice"
    android:divider="@color/list_divider"
    android:dividerHeight="@dimen/zero"
    android:paddingLeft="@dimen/menu.padding"
    android:paddingRight="@dimen/menu.padding" >

    <!-- Some other elements -->

</FrameLayout>

<!-- Detailansicht -->

<ScrollView
    android:id="@+id/detail_drawer"
    android:layout_width="@dimen/detail.width"
        android:layout_height="fill_parent"
        android:layout_gravity="end"
        android:background="@color/drawer_bkgnd"
        android:paddingLeft="@dimen/detail.padding"
        android:paddingRight="@dimen/detail.padding" >

    <RelativeLayout    
        android:layout_width="fill_parent"
        android:layout_height="wrap_content" >

        <!-- Some other elements -->

    </RelativeLayout>
</ScrollView>

将抽屉模式设置为。
抽屉锁上了。用户可能无法打开它,但应用程序可能会以编程方式打开它


供应商提供了大量储罐