Code example for Path

Methods: arcTocloselineTomoveTo

0
      float left = bounds.left;
      float top = bounds.top;
      float right = bounds.right - 2;
      float bottom = bounds.bottom - 1;
 
      Path path = new Path();
      path.moveTo(right, bottom);
      path.arcTo(new RectF(left, bottom - round * 2, left + round * 2, bottom), 90, 90);
      path.arcTo(new RectF(left, top, left + round + 2, top + round * 2), 180, 90);
      path.lineTo(right, top);
      path.close();
 
      return path;
    } 
  } 
 
  private static class CenterButtonPathFactory implements PathFactory { 
    @Override 
    public Path newInstance(Rect bounds) {
      float left = bounds.left;
      float top = bounds.top;