Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SlidingMenu: disable the swipe gesture

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?

like image 922
syntagma Avatar asked Dec 16 '13 08:12

syntagma


People also ask

How to disable back gesture in android 11?

Tap the Settings icon to launch the Settings app. Scroll down and tap on Accessibility. Scroll down to the Interaction Controls section and tap System navigation. Tap the button next to 3-button navigation to switch back to the classic 3-button system, or tap the button next to Gesture navigation to enable it.


1 Answers

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

like image 198
Adhikari Bishwash Avatar answered Sep 29 '22 18:09

Adhikari Bishwash