Materialdrawer: change hamburg icon color

Created on 1 Apr 2015  ·  3Comments  ·  Source: mikepenz/MaterialDrawer

Hello, please help me how i can change Drawer indicator hamburg icon color to white?

question

Most helpful comment

@AlexMercier the ActionBarDrawerToggle color is defined by the theme. so if you need it white you should use a dark theme or the DarkToolbar theme. (you should use one of the MaterialDrawerTheme)

if it should be black you have to use the light theme.

else you have to set your own DrawerArrowStyle

in your theme:

<item name="drawerArrowStyle">@style/MaterialDrawer.DrawerArrowStyle</item>
<style name="MaterialDrawer.DrawerArrowStyle" parent="Widget.AppCompat.DrawerArrowToggle">
        <item name="spinBars">false</item>
        <item name="color">@android:color/white</item>
</style>

All 3 comments

@AlexMercier the ActionBarDrawerToggle color is defined by the theme. so if you need it white you should use a dark theme or the DarkToolbar theme. (you should use one of the MaterialDrawerTheme)

if it should be black you have to use the light theme.

else you have to set your own DrawerArrowStyle

in your theme:

<item name="drawerArrowStyle">@style/MaterialDrawer.DrawerArrowStyle</item>
<style name="MaterialDrawer.DrawerArrowStyle" parent="Widget.AppCompat.DrawerArrowToggle">
        <item name="spinBars">false</item>
        <item name="color">@android:color/white</item>
</style>

Oh, thank you. The MaterialDrawerTheme.Light.DarkToolbar thats what i need.

@AlexMercier great ;)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

meness picture meness  ·  3Comments

GutoMartins019 picture GutoMartins019  ·  4Comments

sonh picture sonh  ·  3Comments

ghost picture ghost  ·  3Comments

Erwinstein picture Erwinstein  ·  3Comments