Code example for GestureDetector

Methods: setOnDoubleTapListener

		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);
Connect your IDE to all the code out there  Get Codota for Java