Code example for MotionEvent

Methods: getXgetY

0
	} 
 
	private boolean pointerAreaTouched(MotionEvent event, int area) {				
		RectF transRect = new RectF(pointerAreaRects[area]);
		translationMatrix.mapRect(transRect);
		if(transRect.contains(event.getX(), event.getY()))
			return true;			 
		return false; 
	}	 
	 
	private boolean pointerTouched(MotionEvent event) {				
		RectF transRect = new RectF(pointerRect);
		translationMatrix.mapRect(transRect);
		if(transRect.contains(event.getX(), event.getY()))
			return true;			 
		return false; 
	}			 
 
	@Override 
	public boolean onTouchEvent(MotionEvent event) {
Stop searching for code, let great code find you!  Add Codota to your java IDE