I have four BottomNavigationView items, Let's say A, B, C, and D. I have two icons for all, which is applied like this:
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@mipmap/home_icon" android:state_checked="false"/>
<item android:drawable="@mipmap/home_selected" android:state_checked="true"/>
</selector>
My menu.xml
<item
android:id="@+id/navigation_home"
android:icon="@drawable/home_selection"
android:title="@string/title_home" />
What I want is when I click C, the icons of A, B, and D should be changed to a Third Icon respectively. Hope this makes sense. Is there a way to achieve this?
Maybe there is a way to add a third icon in the selector.xml but I don't know which state should be applied.