Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • 1
    You can capture all the touch events using onInterceptTouchEvent and use dispatchTouchEvent to dispatch the touches to necessary views. Try capturing touch events and dispatch them to the map fragment once uses touches the map. Commented Jun 7, 2013 at 3:27
  • Thanks for the suggestion. Guess now I have to intercept touch events from scroll view and dispatch it to the map if the touch was happening on the map? Commented Jun 7, 2013 at 4:26
  • Yes. this is somewhat similar -stackoverflow.com/questions/2646028/… Commented Jun 7, 2013 at 5:22
  • For some reason, map view wasn't responding to dispatchTouchEvent. I ended up testing bounds and returning true/false based on it (see my answer below) Commented Jun 7, 2013 at 5:27