I have my bottomNavigationView :
And i added this class to prevent it from doing shiftingMode :
public class BottomNavigationViewHelper {
Our use case was a multicolored icon when the tab is active and a grey one when it is not. Setting itemIconTintList
to null made the inactive tab icons have the same colors as the active ones when using the material component BottomNavigationView
.
So we had to do this in addition:
menu_bottom_navigation.xml:
ic_first_tab_selector.xml:
Where ic_first_tab_inactive.xml
is the drawable for your inactive icon and ic_first_tab_active.xml
is the drawable for your active icon.