Disable scrolling in Osmdroid map
I have an Osmdroid MapView. Even though I have set mapView.setClickable(false); mapView.setFocusable(false); the map can still be moved around. Is there a simple way to disable all interactions with the map view? I've found a solution. You need to handle the touch events directly by setting a OnTouchListener . For example, public class MapViewLayout extends RelativeLayout { private MapView mapView; /** * @see #setDetachedMode(boolean) */ private boolean detachedMode; // implement initialization of your layout... private void setUpMapView() { mapView.setOnTouchListener(new OnTouchListener() {