Closed vlad-roid closed 4 years ago
Currently stroke-dasharray isn't supported. It would make sense to add it inside the doStroke method like this:
stroke-dasharray
doStroke
String dashArray = atts.getString("stroke-dasharray"); if (dashArray != null && !dashArray.equalsIgnoreCase("none")) { String[] splitDashArray = dashArray.split(", ?"); float[] intervals = new float[splitDashArray.length]; for (int i = 0; i < splitDashArray.length; i++) { intervals[i] = Float.parseFloat(splitDashArray[i]); } mStrokePaint.setPathEffect(new DashPathEffect(intervals, 0)); }
I believe this was resolved in PR #52; see 13ab3172e8bc08c03e29fd18e3e3802174263728
Currently
stroke-dasharray
isn't supported. It would make sense to add it inside thedoStroke
method like this: