2

I have a ListFragment and at the footer of the list fragment I added another fragment that contains google map. I added swipe gestures left->right, right->left to whole Activity and that works fine. The problem is that when user swipes on top of the map it calls left->right, right-left functions. I want to disable these functions for my map view (fragment), and when swipe occurs on map view (fragment) do only map related movements.

If anyone knows how to implement it I would greatly appreciate it.

Vaidas
  • 1,297
  • 1
  • 13
  • 14
  • Check this out: http://www.londatiga.net/it/programming/android/how-to-make-android-map-scrollable-inside-a-scrollview-layout/ – denvercoder9 Mar 06 '15 at 00:06
  • @RafiduzzamanSonnet Hi, I tried to implement the code that you suggested, but for some reason it gives me null pointer exception.. Trying to figure out what is wrong. it initiates WorkaroundMapFragment but then it crashes. – Vaidas Mar 07 '15 at 00:57
  • Post the errors from logcat – denvercoder9 Mar 07 '15 at 10:52
  • @RafiduzzamanSonnet thanks for the link. I combined some code from that article and links from an article and got it working. I got null exception errors because I didn't declare the map fragment correctly in main activity. – Vaidas Mar 10 '15 at 18:03

0 Answers0