2017-07-25 61 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