/selector.xml Secret
Created
October 20, 2016 11:44
Star
You must be signed in to star a gist
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> |
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
@EzekielHawk
You need to add this selector to
/res/drawable