Created
April 12, 2014 04:38
-
-
Save ChaseFlorell/10519029 to your computer and use it in GitHub Desktop.
How to prevent icon slide on Right navigation drawer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public override void OnDrawerSlide(View drawerView, float slideOffset) | |
{ | |
if (null != DrawerSlide) | |
DrawerSlide(this, new ActionBarDrawerEventArgs | |
{ | |
DrawerView = drawerView, | |
SlideOffset = slideOffset | |
}); | |
// only slide the left nav item | |
if ((drawerView == _leftDrawerView) || (_leftDrawerView==null && _rightDrawerView==null)) | |
{ | |
base.OnDrawerSlide(drawerView, slideOffset); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
THIS IS NOT WORKING CODE.