protected void onDraw(Shape shape, Canvas canvas, Paint paint) {
// V1
shape.draw(canvas, fillpaint);
shape.draw(canvas, strokepaint);
// V2
// shape.resize(canvas.getClipBounds().right,
// canvas.getClipBounds().bottom);
// shape.draw(canvas, fillpaint);
//
// Matrix matrix = new Matrix();
// matrix.setRectToRect(new RectF(0, 0,
// canvas.getClipBounds().right, canvas.getClipBounds().bottom), new
// RectF(strokeWidth / 2, strokeWidth / 2,
// canvas.getClipBounds().right - strokeWidth
// / 2, canvas.getClipBounds().bottom - strokeWidth / 2),
// Matrix.ScaleToFit.FILL);
// canvas.concat(matrix);
//
// shape.draw(canvas, strokepaint);
}
PersonColorDrawableHelper.java 文件源码
java
阅读 33
收藏 0
点赞 0
评论 0
项目:geoPingProject
作者:
评论列表
文章目录