Code example for Paint

Methods: setARGB, setAntiAlias, setStrokeWidth, setStyle

0
		int startRight= Color.rgb(191, 210, 85);
		int endRight = Color.rgb(147, 186, 43);
		Shader rightShader = new LinearGradient(0, 0, width, arrow_width* (float) 0.835, startRight, endRight, Shader.TileMode.REPEAT);
		//rightPaint.setShader(rightShader); 
		 
		leftPaint = new Paint();
		leftPaint.setStyle(Style.FILL);
		leftPaint.setStrokeWidth(1);
		leftPaint.setAntiAlias(true);
		leftPaint.setARGB(180, 147, 186, 228);
		int startLeft = Color.rgb(147, 186, 228);
		int endLeft = Color.rgb( 95, 121, 150);
		Shader leftShader = new LinearGradient(0, 0, width, arrow_width * (float) 0.835 , startLeft, endLeft, Shader.TileMode.REPEAT);
		//leftPaint.setShader(leftShader); 
		 
		 
	} 
 
	@Override 
    protected void dispatchDraw(Canvas canvas) {
		Paint paint;