in my Android app I have a LinearLayout partially over a MapView and dragging on the layout causes the map to pan.
How can this be avoided? Of course I can’t disable pan because dragging on the map itself should move it. See this screenshot for clarification:

Dunno if it’s relevant (don’t think so): both MapView and LinearLayout are inside a RelativeLayout.
Thanks,
Maurizio
Have your
LinearLayoutbe clickable? Eitherandroid:clickable="true"in XML orsetClickable(true);in code.