Code example for Paint

Methods: setAntiAliassetColorsetPathEffectsetStrokeWidthsetStyle

0
	/** 
	 * dot paint 
	 * @return 
	 */ 
	private Paint setupDotPaint(){
		Paint paint = new Paint();
		paint.setColor(Color.WHITE);
		paint.setAntiAlias(true);
		paint.setStyle(Style.STROKE);
		paint.setStrokeWidth(1.f);
		DashPathEffect d = new DashPathEffect(new float[]{3,3}, 0.f);
		paint.setPathEffect(d);
		return paint;
	} 
	 
	@Override 
	protected void onSizeChanged( 
			int width,
			int height,
			int oldWidth,
Experience pair programming with AI  Get Codota for Java