Code example for GestureDetector

Methods: setIsLongpressEnabled

0
 
        // get dispatcher 
        mDispatcher = EventDispatcher.getInstance();
         
        // setup gesture detector 
        mGestureDetector = new GestureDetector(context, mDispatcher);
        mGestureDetector.setIsLongpressEnabled(true);
 
        // set director as renderer 
        setEGLConfigChooser(new WYConfigChooser(transparent));
        if (transparent) {
        	getHolder().setFormat(PixelFormat.TRANSLUCENT);
        } 
        setRenderer(mDirector);
 
        // set focusable 
        setFocusable(true);
        setFocusableInTouchMode(true);
    } 
     
Contextual code suggestions in your IDE  Get Codota for Java