BaseCircle.java 文件源码

java
阅读 27 收藏 0 点赞 0 评论 0

项目:boohee_v5.6 作者:
protected void drawBackground(Canvas canvas) {
    Paint bgPaint = new Paint();
    bgPaint.setColor(this.mCircleBackground);
    int radius = getViewRadius() - ((this.mDividerWidth * 3) / 2);
    canvas.drawCircle((float) getCenterX(), (float) getCenterY(), (float) radius, bgPaint);
    Path path = new Path();
    path.addCircle((float) getCenterX(), (float) getCenterY(), (float) radius, Direction.CW);
    Paint paint = new Paint();
    paint.setColor(this.mCircleGray);
    paint.setAntiAlias(true);
    paint.setStyle(Style.STROKE);
    paint.setStrokeWidth(1.0f);
    canvas.drawPath(path, paint);
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号