Skip to content

Instantly share code, notes, and snippets.

@ChaseFlorell
Created April 12, 2014 04:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ChaseFlorell/10519029 to your computer and use it in GitHub Desktop.
Save ChaseFlorell/10519029 to your computer and use it in GitHub Desktop.
How to prevent icon slide on Right navigation drawer
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);
}
}
@ChaseFlorell
Copy link
Author

THIS IS NOT WORKING CODE.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment