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?

有帮助吗?

解决方案

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

其他提示

mDrawerLayout.setDrawerLockMode(DrawerLayout.LOCK_MODE_LOCKED_CLOSED);    

This should work.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top