我在底部导航视图中添加图像 单击图像更改(代码2) 为什么在启动项目时电话和虚拟设备上的图像是粉红色的?
<android.support.design.widget.BottomNavigationView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/bottom_navigation_view"
android:layout_alignParentBottom="true"
android:background="@color/white"
app:itemIconTint="@drawable/bottom_navigation_color_selector"
app:itemTextColor="@color/dark_blue"
app:menu="@menu/menu_bottom_navigation"/>
menu_bottom_navigation
> <?xml version="1.0" encoding="utf-8"?> <menu > xmlns:android="http://schemas.android.com/apk/res/android" > xmlns:app="http://schemas.android.com/apk/res-auto"> > <item > android:id="@+id/action_exchange" > android:icon="@drawable/bottom_navigation_color_selector" > android:title="converter" > app:showAsAction="ifRoom" /> > <item > android:id="@+id/action_history" > android:icon="@drawable/bottom_navigation_color_selector" > android:title="history" > app:showAsAction="ifRoom" /> > > </menu>
bottom_navigation_color_selector
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<item
android:id="@+id/action_exchange"
android:icon="@drawable/bottom_navigation_color_selector"
android:title="converter"
app:showAsAction="ifRoom" />
<item
android:id="@+id/action_history"
android:icon="@drawable/bottom_navigation_color_selector"
android:title="history"
app:showAsAction="ifRoom" />
</menu>