seema seema - 1 year ago 98
Android Question

ActionBarDrawerToggle customization

How to change icon for ActionBarDrawerToggle in android using AppCompat V7? Also, how can we specify params and padding etc for ActionBarDrawerToggle icon?

Answer Source
    Toolbar toolbar = (Toolbar) findViewById(;

Add these lines in your onCreate() method , also add


add this line after


and also in toggle listeners. Android will pick default icon every time you open or close the drawer, so its important to put this line in toggle listeners also.