Code example for DashPathEffect

0
		paint.setColor(Color.GRAY);
		Path path = new Path();
		path.moveTo(10, 10);
		path.lineTo(800, 10);
		// path.lineTo(460,10); 
		PathEffect effects = new DashPathEffect(new float[] { 5, 5, 5, 5 }, 1);
		paint.setPathEffect(effects);
		canvas.drawPath(path, paint);
	} 
 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE