I am creating an android application using "Navigation Drawer Activity" template. When the application is created, by default, the icon color menu is white. And my aim is to change this icon color menu. Not only, by reading blogs and forum to solve it, but also, by searching documentation in the net, I can't still achieve this. Could anyone help me? enter image description here
Asked
Active
Viewed 101 times
0
-
1This question should be closed. Please checkout https://stackoverflow.com/questions/31870132/how-to-change-color-of-hamburger-icon-in-material-design-navigation-drawer – Abhishek May 22 '20 at 15:55
-
1Than you very much @Abhisheck, it works like a charm!! – zayann May 25 '20 at 06:42
1 Answers
0
Hey there you can do this :-
Add custom style in your styles.xml
<style name="NavDrawerIcon" parent="Widget.AppCompat.DrawerArrowToggle"> <item name="color">@android:color/black</item> </style>
Then in your app theme add this line :-
<item name="drawerArrowStyle">@style/NavDrawerIcon</item>
This will change your icon color to Black.

WhiteSpidy.
- 1,107
- 1
- 6
- 28
-
-
@zayann Do mark this answer as accepted and up vote it if it did help you. – WhiteSpidy. May 25 '20 at 06:52
-
Another question to this please, how to change the color of the title placed in the AppBar when we click an item from the drawerNavigation, like Home for example – zayann May 25 '20 at 07:07
-
you can add this line of code in your app theme :- `
- @android:color/black
` This will change the titlt "Home" color to black. Do upvote this answer so that others can find easily. – WhiteSpidy. May 25 '20 at 07:49 -