Change the color of Navigation Drawer indicator icon

帅比萌擦擦* 提交于 2019-11-29 22:07:45

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 Applications theme like so:

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

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>

Jasmine John

The following worked for me.

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

Put this code in your activity

toggle.getDrawerArrowDrawable().setColor(getResources().getColor(R.color.grey));
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!