Is there a method like append() for Path in Android?
I have a line that I would like to add to a Path but don't see a method similar to appened
(in Java one would use GeneralPath.append(new Line2D.double) )
For instance, in Java code I have something like:
GeneralPath thePlots = new GeneralPath();
thePlots[CONST_IN开发者_开发百科T].append(new Line2D.Double(centerX, centerY, xy[0], xy[1]), false);
//later I draw my line and whatever other points I have
However, in Android I don't see the option to append (or Line2D for that matter). Is there an alternative way of doing this rather than using canvas.drawLine()
and then drawing the rest of the points?
Have you looked at Path?
精彩评论