我已經在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>
請引導我如何在導航抽屜背景中顯示完整圖像。
你有沒有嘗試添加'機器人:fitsSystemWindows =「真」''到'? –
kimbaudi
只是累了,但沒有成功 – Kirmani88
你有沒有修好? –