Change the color of Navigation Drawer indicator icon

AndroidNavigation DrawerToolbar

Android Problem Overview


I am using a toolbar in place of actionbar and i am also using a navigation drawer.My toolbar colour is black and i want my navigation drawer indicator colour to be white.So how to change the colour of the navigation drawer indicator or put a custom navigation indicator in v7.Can any one please help me?

Android Solutions


Solution 1 - Android

Try creating this style in your styles.xml.

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

And, then add it to you AppTheme style like the following.

<item name="drawerArrowStyle">@style/DrawerArrowStyle</item>

Solution 2 - Android

In your AppTheme add this style.

<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
<item name="drawerArrowStyle">@style/DrawerArrowStyle</item>
</style>

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

Solution 3 - Android

Put this code in your activity

toggle.getDrawerArrowDrawable().setColor(getResources().getColor(R.color.grey));

Solution 4 - Android

The following worked for me.

 <style name="ToolBarStyle" parent="Theme.AppCompat.Light.NoActionBar">
            <item name="colorControlNormal">@android:color/white</item>
        </style>

Solution 5 - Android

1: Go to directory res -> themes.xml

2: Inside:

<style name="Theme.YourAppName" parent="Theme.MaterialComponents.Light.NoActionBar">

add this line: <item name="colorControlNormal">@android:color/white</item>

you can add this to themes.xml (night) or you may change it according to your preferred style.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionAnimesh JenaView Question on Stackoverflow
Solution 1 - AndroidDomView Answer on Stackoverflow
Solution 2 - AndroidLalit kumarView Answer on Stackoverflow
Solution 3 - AndroidLopezDevelopView Answer on Stackoverflow
Solution 4 - AndroidJasmine JohnView Answer on Stackoverflow
Solution 5 - AndroidF.MysirView Answer on Stackoverflow