Code example for PathDashPathEffect

0
 
		// navigational line style 
		paint = new Paint();
		paint.setAntiAlias(true);
		paint.setPathEffect(new PathDashPathEffect(makePathDash(), 12, 1,
				PathDashPathEffect.Style.ROTATE));
		paint.setColor(Color.BLUE);
		paint.setStyle(Paint.Style.STROKE);
		paint.setStrokeWidth(2);
	} 
 
	@Override 
	protected Treasure createItem(int i) {
		return treasures.get(i);
	} 
 
	@Override 
	public int size() { 
		return treasures.size();
	}