2017-07-25 87 views
1

i want remove this space from navigation drawer我想从抽屉式导航安卓删除滚动模式

我想从抽屉式导航栏或无菜单

这里是我的布局代码创建自定义导航抽屉的任何解决方案中删除滚动模式。

<?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:overScrollMode="never" 
    tools:openDrawer="end"> 

     <include 
     layout="@layout/app_bar_live" 
     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="match_parent" 
     android:layout_gravity="end" 
     app:headerLayout="@layout/nav_header_live" 
     android:overScrollMode="never" /> 

</android.support.v4.widget.DrawerLayout> 

回答

0

尝试将此添加到根标记(android.support.v4.widget.DrawerLayout)...希望它有帮助。

android:fitsSystemWindows="true" 

,并尝试删除该机器人:从两个根标签overScrollMode和navigationview