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

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

c# - Better 64-bit byte array hash -

python - PyCharm Type error Message -