SProgress.java 文件源码

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

项目:JSSample 作者:
private void init() {
   setLayerType(LAYER_TYPE_SOFTWARE,null);
    bgpaint = new Paint();
    bgpaint.setColor(backColor);
    bgpaint.setAntiAlias(true);

    proPaint = new Paint();
    proPaint.setColor(progressColor);
    LinearGradient linearGradient = new LinearGradient(0, 0, width, height, progressColor, progressendcolor, Shader.TileMode.CLAMP);
    proPaint.setShader(linearGradient);
    proPaint.setAntiAlias(true);

    textPaint = new Paint();
    textPaint.setColor(textColor);
    textPaint.setAntiAlias(true);
    textPaint.setTextSize(textsize);
    textbaseline = getFontstart(textPaint);
    rectbg = new RectF();
    rectprogress = new RectF();
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号