Code example for Path

Methods: closelineTomoveTo

0
	} 
 
	private void createShineArea() { 
		int width = getWidth();
		int height = (int) (0.9 * getHeight());
		path = new Path();
		path.moveTo(0, 0);
		path.lineTo(width, 0);
		path.lineTo(width, height);
		path.close();
		paint.setShader(new LinearGradient(0, 0, 0, height, 0x55ffffff,
				0x10ffffff, Shader.TileMode.CLAMP));
	} 
 
	@Override 
	protected void dispatchDraw(Canvas canvas) {
		if (path == null) {
			createShineArea(); 
		} 
		// Draw the shine behind the children. 
Stop searching for code, let great code find you!  Add Codota to your java IDE