-
-
Save hitherejoe/cc0dbc84c5397ee630d0b9298112d54c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<selector xmlns:android="http://schemas.android.com/apk/res/android"> | |
<item android:color="@color/white" android:state_enabled="true" /> | |
<item android:color="@color/colorPrimaryDark" android:state_enabled="false" /> | |
</selector> |
Where do you need to create this selector.xml? Under menu folder?
@EzekielHawk
You need to add this selector to /res/drawable
You must change the selector from state_enabled to state_checked ( in your menu xml, all the items are enables, so it will show the same color for all the items in bottomNavigationView)
Yes to this!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You must change the selector from state_enabled to state_checked ( in your menu xml, all the items are enables, so it will show the same color for all the items in bottomNavigationView)