Code example for ScaleGestureDetector

Methods: onTouchEvent

0
		if (mTapGestureDetector.onTouchEvent(event))
			return true; 
 
		if (event.getPointerCount() > 1) {
			try { 
				if (mScaleDetector != null && mScaleDetector.onTouchEvent(event))
					return true; 
			} catch (Exception e) {
				e.printStackTrace();
			} 
		} 
 
		if (mDoubleTapGestureDetector.onTouchEvent(event))
			return true; 
 
		switch (event.getAction() & MotionEvent.ACTION_MASK) {
		case MotionEvent.ACTION_UP:
			mListener.onGestureEnd();
			break; 
		}