I'm currently trying to change the icon in Navigation Drawer when some event occurs. Is it possible?? I mean that I change the icon - it's no problem:
mDrawerToggle = new ActionBarDrawerToggle(
this,
mDrawerLayout,
R.drawable.actionbar_settings, /* my icon - all Ok! */
R.string.text1,
R.string.text2
) {};
I mean what to do if some event fires and I want to change this icon on another? If I repeat the code but with another icon - no success.
mDrawerToggle = new ActionBarDrawerToggle(
this,
mDrawerLayout,
R.drawable.new_icon_image, /* bad news - nothing changes */
R.string.text1,
R.string.text2
) {};
Thanks a lot!