【发布时间】:2016-03-14 09:00:16
【问题描述】:
我在操作栏下制作了导航抽屉。它在 Jellybean os 上运行良好,但在 marshmallow os 上却不工作..
<?xml version="1.0" encoding="utf-8"?>
<android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/drawer_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
tools:openDrawer="start">
<include
layout="@layout/app_bar_checkout"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<FrameLayout
android:id="@+id/content_frame"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<!-- The navigation drawer -->
<ExpandableListView
android:id="@+id/left_drawer"
android:layout_width="240dp"
android:layout_height="match_parent"
android:layout_gravity="start"
android:background="#fdfdfd"
android:choiceMode="singleChoice"
android:divider="@android:color/transparent"
android:dividerHeight="0dp"
android:groupIndicator="@null"
android:layout_marginTop="?attr/actionBarSize"
/>
</android.support.v4.widget.DrawerLayout>
【问题讨论】:
标签: android navigation-drawer android-6.0-marshmallow android-4.3-jelly-bean