Code example for GestureDetector

Methods: setOnDoubleTapListener

0
		return true; 
	} 
 
	public final boolean onDoubleTapEvent(MotionEvent e) {
		// Wait for the confirmed onDoubleTap() instead 
		return false; 
	} 
 
	public final void onDrag(float dx, float dy) {
		if (DEBUG) {
			Log.d(LOG_TAG, String.format("onDrag: dx: %.2f. dy: %.2f", dx, dy));
		} 
 
		ImageView imageView = getImageView();
 
		if (null != imageView && hasDrawable(imageView)) {
			mSuppMatrix.postTranslate(dx, dy);
			checkAndDisplayMatrix(); 
 
			/** 
			 * Here we decide whether to let the ImageView's parent to start