0

我已經在Navigation Drawer背景中放置了圖像。圖像在那裏,但它不適合在視圖中的完整圖像,圖像的上部部分圖像的5%未進入視圖,這是主要部分,我希望它在背景中。如何在導航抽屜背景中顯示完整圖像

這是我的代碼。

<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:layout_width="match_parent" 
    android:layout_height="match_parent" 
    android:fitsSystemWindows="true" 
    tools:context="com.myapp.HomeActivity" 
    android:id="@+id/drawer_layout_main" 
    > 
    <android.support.design.widget.NavigationView 
     android:layout_width="wrap_content" 
     android:layout_height="match_parent" 
     android:id="@+id/navigation_view" 
     android:layout_gravity="start" 
     android:background="@drawable/sidebg" 
     android:gravity="bottom|left" 
     android:dividerHeight="0dp" 
     app:itemIconTint="@android:color/white" 
     android:scaleType="fitStart" 
     > 

     <include layout="@layout/navigation_items"/> 

    </android.support.design.widget.NavigationView> 


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

請引導我如何在導航抽屜背景中顯示完整圖像。

+0

你有沒有嘗試添加'機器人:fitsSystemWindows =「真」''到'? – kimbaudi

+0

只是累了,但沒有成功 – Kirmani88

+0

你有沒有修好? –

回答

0

這不是一個合適的答案,但你可以做的是減少文件的大小,然後應用

+0

沒有代碼,您可以在某個編輯器中更改圖像的大小,然後應用。 –

+0

好的,是壞的適度抱歉 – GGO