5

I am using SlidingMenu together with a MapView and would like to disable swipe gesture used to open the menu whenever user has the map fragment as the content fragment. How can I do it?

syntagma
  • 23,346
  • 16
  • 78
  • 134

2 Answers2

10

on SlidingMenu object do getSlidingMenu().setSlidingEnabled(false); when your fragment is visible.

Adhikari Bishwash
  • 2,770
  • 28
  • 32
0
mDrawerLayout.setDrawerLockMode(DrawerLayout.LOCK_MODE_LOCKED_CLOSED);    

This should work.