Code example for GestureDetector

Methods: setOnDoubleTapListener

    TouchEventHandler(Context context, LayerView view, LayerController controller) {
        mView = view;
        mController = controller;
        mEventQueue = new LinkedList<MotionEvent>();
        mGestureDetector = new GestureDetector(context, controller.getGestureListener());
        mScaleGestureDetector = new SimpleScaleGestureDetector(controller.getScaleGestureListener());
        mListenerTimeoutProcessor = new ListenerTimeoutProcessor();
        mDispatchEvents = true;
    /* This function MUST be called on the UI thread */ 
    public boolean handleEvent(MotionEvent event) {
        // if we don't have gecko listeners, just dispatch the event 
        // and be done with it, no extra work needed. 
        if (mOnTouchListener == null) {
Stop searching for code, let great code find you!  Add Codota to your java IDE