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>
ナビゲーションドロワーの背景に完全な画像を表示する方法を教えてください。
を適用しているあなたは、 'アンドロイドを追加しようとしたことがあり: '? –
kimbaudi
ちょうど疲れましたが、成功しません – Kirmani88
あなたはそれを修正しましたか? –