on SlidingMenu object do getSlidingMenu().setSlidingEnabled(false);
when your fragment is visible.
SlidingMenu: disable the swipe gesture
-
02-09-2022 - |
Pregunta
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?
Solución
Otros consejos
mDrawerLayout.setDrawerLockMode(DrawerLayout.LOCK_MODE_LOCKED_CLOSED);
This should work.
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow