문제

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