我现在要在app:itemBackground="@color/purpleBoo"暗示颜色功能背景时app:itemBackground="@color/purpleBoo"了一个问题app:itemBackground="@color/purpleBoo"
但是颜色似乎不填满整个底部导航? 为什么这发生在我身上?
我的底部导航代码
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"
tools:context=".MainActivity">
android:id="@+id/bottom_nav"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
app:itemBackground="@color/purpleBoo"
app:menu="@menu/bottom_nav_menu"
app:itemIconTint="@color/bottom_nav_color"
app:itemTextColor="@color/bottom_nav_color"/>