Possible Duplicate:
gesture issue with mapview in viewpager page
I use the template that allow us to swipe horizontally between tabs
But one of my tab is MapView, so when I swipe left/right in that MapView, it will switch tab instead of moving the map.
Is there any way to disable the gesture only in that MapView tab?
Thanks
I found the answer from this question
In case the link is dead, I copied the code here:
Make a new class with this exact code, it will prevent MapView to receive any other gesture aside of map-related gesture. Don’t forget to add your
packageandimport(CTRL+SHIFT+O) above these codeThen in
main.xmlchange the<android.support.v4.view.ViewPager ... />into this:Thanks to Jorge Aguilar for the answer in that question!