android - Icon animation on the new NavigationView -


i trying switch new navigationview drawer.

when did (and working fine), lost animation of menu icon icon when drawer sliding.

how can have on navigationview?

here code:

toolbar = (toolbar) findviewbyid(r.id.app_bar); toolbar.setnavigationicon(r.drawable.ic_menu_white); setsupportactionbar(toolbar);  mdrawer = (navigationview) findviewbyid(r.id.navigation_drawer); if (mdrawer != null) {     mdrawer.setnavigationitemselectedlistener(this); }  mdrawerlayout = (drawerlayout) findviewbyid(r.id.drawer_layout); 

thanks in advance!

after doing lot research, solved adding following:

@override protected void onpostcreate(bundle savedinstancestate) {     super.onpostcreate(savedinstancestate);     // sync toggle state after onrestoreinstancestate has occurred.     mdrawertoggle.syncstate(); } 

hope helps.


Comments

Popular posts from this blog

c# - Better 64-bit byte array hash -

webrtc - Which ICE candidate am I using and why? -

php - Zend Framework / Skeleton-Application / Composer install issue -