Code example for Paint

Methods: setARGB, setAntiAlias, setStrokeWidth, setStyle

0
		 
		line_width = CircleHelper.dip2px(LINE_WIDTH, scale);
		margins = CircleHelper.dip2px(MARGINS, scale);
		arrow_width = CircleHelper.dip2px(ARROW_WIDTH, scale);
		 
		rightPaint = new Paint();
		rightPaint.setStyle(Style.FILL);
		rightPaint.setStrokeWidth(1);
		rightPaint.setAntiAlias(true);
		rightPaint.setARGB(180, 191, 210, 85);
		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);