MaterialDrawer change hamburger icon(Menu)

65 Views Asked by At

I am using MaterialDrawer library and I trying to change the hamburger icon.
I found this answer in here.

but I cannot understand from the answer how to use the toggle variable over there and it doesn't seems to work for me.

is there any way of changing it then?

1

There are 1 best solutions below

1
zimeriljazi On

As per the documentation of the library you are using you can switch between hamburger-icon to back-arrow icon with the following code snippet:

result.getActionBarDrawerToggle().setDrawerIndicatorEnabled(false);
getSupportActionBar().setDisplayHomeAsUpEnabled(true);