Code example for LinearGradient

0
		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. 
		canvas.drawPath(path, paint);
		// Draw the children 
		super.dispatchDraw(canvas);
	} 
 
	@Override 
	protected void onLayout(boolean changed, int l, int t, int r, int b) {