public void draw(Shape s) { PathIterator pi = s.getPathIterator(null); Path path = convertAwtPathToAndroid(pi); // Draw the outline, don't fill paint.setStyle(Style.STROKE); canvas.drawPath(path, paint); }
public void fill(Shape s) { PathIterator pi = s.getPathIterator(null); Path path = convertAwtPathToAndroid(pi); // Draw the outline and fill paint.setStyle(Style.FILL_AND_STROKE); canvas.drawPath(path, paint); ; }