As the title says. Personal notes.
If you want to make the hamburger menu white
MainActivity.java
ActionBarDrawerToggle toggle = new ActionBarDrawerToggle(
this, drawer,toolbar,
R.string.drawer_open,
R.string.drawer_close);
/*Get the drawable of the hamburger menu from toggle*/
DrawerArrowDrawable arrowDrawable = toggle.getDrawerArrowDrawable();
/*Color change*/
arrowDrawable.setColor(getResources().getColor(R.color.colorWhite));
/*Set the recolored drawable again*/
toggle.setDrawerArrowDrawable(arrowDrawable);
that's all.
Please let me know if there is another good way.
Recommended Posts