Search code examples
androidmaterial-designmaterialdrawer

How to change color of icon of selected item in material drawer?


I use the Mike Penze's Material Drawer library https://github.com/mikepenz/MaterialDrawer. On samples the icon color of selected item changes, but in my app doesn't. How to make color to change?


Solution

  • Sure, First you tint the different icons then in code, define the tinted ones as what shows when an item is highlighted.

    The method is:

    .withSelectedIcon()
    

    and .withSelectedText() for text color