Disable Animation Of Drawer Icon In Double Navigation Drawer For Right Drawer
I have a Double Navigation Drawer I have two problems. 1) The navigation drawer icon on the left (3 bars) animate when opening or closing the navigation drawer on the right. 2) I d
Solution 1:
You need to override the onDrawerSlide method of ActionBarDrawerToggle and set the slideOffset to 0 if the drawer is right drawer. So this would disable the animation of the navigation drawer image for right drawer.
@OverridepublicvoidonDrawerSlide(View drawerView, float slideOffset)
{
if(drawerView!=null && drawerView == rightDrawerListView){
super.onDrawerSlide(drawerView, 0);
}else{
super.onDrawerSlide(drawerView, slideOffset);
}
}
This worked for me similar to Google+.
Post a Comment for "Disable Animation Of Drawer Icon In Double Navigation Drawer For Right Drawer"