I just created a template project in Android Studio and I did not change a line of code (DrawerLayout template project).
However, I found the clicked icon for showing the navigation fragment is always a left arrow, even though in the code it sets the icon to another one.
Here's the code for constructing ActionBarDrawerToggle:
mDrawerToggle = new ActionBarDrawerToggle(
getActivity(), /* host Activity */
mDrawerLayout, /* DrawerLayout object */
R.drawable.ic_drawer, /* nav drawer image to replace 'Up' caret */
R.string.navigation_drawer_open, /* "open drawer" description for accessibility */
R.string.navigation_drawer_close /* "close drawer" description for accessibility */
)
here's the png file for ic_drawer
How do I change the DrawerLayout Icon?