How to draw dashed polyline with android google map sdk v2?
问题 I've looked through the documentation of polyline and there is no option to make it dashed. Do anybody know how to draw dashed polyline with android google map sdk v2? 回答1: Now in Polyline you can set the pattern to be Dash, Dot or Gap simply apply the following public static final int PATTERN_DASH_LENGTH_PX = 20; public static final int PATTERN_GAP_LENGTH_PX = 20; public static final PatternItem DOT = new Dot(); public static final PatternItem DASH = new Dash(PATTERN_DASH_LENGTH_PX); public