ArcProgressView.java 文件源码

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

项目:boohee_v5.6 作者:
private void init(Context context) {
    setLayerType(1, null);
    this.ARC_WIDTH = DensityUtil.dip2px(context, (float) this.ARC_WIDTH);
    this.SMALL_CIRCLE_WIDTH = DensityUtil.dip2px(context, (float) this.SMALL_CIRCLE_WIDTH);
    this.mBackgroundPaint = new Paint();
    this.mBackgroundPaint.setAntiAlias(true);
    this.mBackgroundPaint.setStrokeWidth((float) this.ARC_WIDTH);
    this.mBackgroundPaint.setStyle(Style.STROKE);
    this.mBackgroundPaint.setStrokeCap(Cap.ROUND);
    this.mCirclePaint = new Paint();
    this.mCirclePaint.setAntiAlias(true);
    this.mCirclePaint.setColor(-1);
    this.mCirclePaint.setStrokeWidth((float) this.SMALL_CIRCLE_WIDTH);
    this.mCirclePaint.setStyle(Style.STROKE);
    this.mCirclePaint.setStrokeCap(Cap.ROUND);
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号