Code example for Path

Methods: quadToreset

0
		preY = y;
		invalidate();
	} 
 
	private void compDraw(float x, float y) {
		currPath.quadTo(preX, preY, (preX + x) / 2, (preY + y) / 2);
		currPath.reset();
		preX = -1;
		preY = -1;
 		// path.addPath(tPath); 
		invalidate();
	} 
 
	@Override 
	public boolean onTouchEvent(MotionEvent event) {
		switch (event.getAction()) {
		case MotionEvent.ACTION_DOWN:
			startDraw(event.getX(), event.getY());
			break; 
		case MotionEvent.ACTION_MOVE:
			contDraw(event.getX(), event.getY());