質問

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