我创建了一个导航抽屉。我想在状态栏下面显示抽屉。它可以正常工作。但抽屉在版本5上的状态栏上方打开, above.I要设置的抽屉像第二image.How设置下面状态栏的动作(即)的所有导航抽屉version.`设置在android中的操作栏上的抽屉导航
<?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="close"
>
<include
layout="@layout/emp_app_bar_home"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<android.support.design.widget.NavigationView
android:id="@+id/nav_view"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:layout_gravity="start"
android:fitsSystemWindows="true"
app:itemTextColor="@color/black"
app:itemIconTint="@color/black"
android:background="@drawable/menubg"
app:headerLayout="@layout/emp_header"
app:menu="@menu/activity_emp_drawer" />
</android.support.v4.widget.DrawerLayout>
这是你要补充的吗? http://stackoverflow.com/a/36587544/5188159 –
没有不喜欢,我需要打开状态栏下面的抽屉。你的例子像抽屉打开下面的操作栏 –
啊,它让我看到mm –