Example #1
0
 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);
 }
Example #2
0
 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);
   ;
 }