Code example for GestureDetector

Methods: onTouchEvent

0
    } 
 
    @Override 
    public boolean onTouchEvent(MotionEvent ev) {
        try { 
            gestureDetector.onTouchEvent(ev);
            return super.onTouchEvent(ev);
        } catch (Exception e) {
            Log.e("GoogleMapView.onTouchEvent", e);
        } 
        return false; 
    } 
 
    private class GestureListener extends SimpleOnGestureListener {
        @Override 
        public boolean onDoubleTap(MotionEvent e) {
            getController().zoomInFixing((int) e.getX(), (int) e.getY());
            if (onDragListener != null) {
                onDragListener.onDrag();
            } 
Connect your IDE to all the code out there  Get Codota for Java