Code example for GestureDetector.SimpleOnGestureListener

0
    public MapViewWrapper(final MapView mapView) {
        this.mapView = mapView;
        this.mapControllerWrapper = new MapControllerWrapper(mapView);
        this.overlayManager = new OverlayManager(this);
 
        final GestureDetector gd = new GestureDetector(mapView.getContext(), new SimpleOnGestureListener());
        gd.setOnDoubleTapListener(new OnDoubleTapListener() {
 
            @Override 
            public boolean onSingleTapConfirmed(MotionEvent e) {
                return false; 
            } 
 
            @Override 
            public boolean onDoubleTap(MotionEvent e) {
                mapView.getController().zoomInFixing((int) e.getX(), (int) e.getY());
                return false; 
            } 
 
            @Override 
Connect your IDE to all the code out there  Get Codota for Java