By default you should use style.xml中的AppTheme主题(这个可以在AndroidManifest.xml as seen in). Assuming that is the case, then you can change the color of the drawer button by:
Enterstyle.xml;
Add an inheritance from Widget.AppCompat.DrawerArrowToggle的style,这里叫做"DrawerArrowStyle"。在里面加上你想要的颜色,这里比如@color/colorBlue;
Add a line named drawerArrowStyle to style "AppTheme".
SetIcon
By default you should use
style.xml
中的AppTheme
主题(这个可以在AndroidManifest.xml
as seen in). Assuming that is the case, then you can change the color of the drawer button by:Enter
style.xml
;Add an inheritance from
Widget.AppCompat.DrawerArrowToggle
的style,这里叫做"DrawerArrowStyle"。在里面加上你想要的颜色,这里比如@color/colorBlue
;Add a line named drawerArrowStyle to style "AppTheme".
In this way, style has the following two items:
Run it again and you will see the result.