I refered to this link: How do I make a dotted/dashed line in Android?, and used DashPathEffect. But this does not work for me? why? my code:
DashPathEffect
pu
I don't think you should use the "for loop" to draw line.set setStrokeWidth($diameter) maybe useful. I have write a simple view supporting this function,detail Here