Code example for Point

Methods: set

0
		float x = event.getX();
		float y = event.getY();
		switch (event.getAction()) {
		case MotionEvent.ACTION_DOWN:
			path.moveTo(x, y);
			point.set((int) x, (int) y);
			return true; 
		case MotionEvent.ACTION_MOVE:
			path.lineTo(x, y);
			break; 
		default: 
			return false; 
		} 
		invalidate();
		return true; 
	} 
 
	public void setBitmap(Bitmap bitmap) {
		this.bitmap = bitmap;
		invalidate();
Stop searching for code, let great code find you!  Add Codota to your java IDE