TempControlView.java 文件源码

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

项目:TempControlView 作者:
private void init() {
    dialPaint = new Paint();
    dialPaint.setAntiAlias(true);
    dialPaint.setStrokeWidth(dp2px(2));
    dialPaint.setStyle(Paint.Style.STROKE);

    arcPaint = new Paint();
    arcPaint.setAntiAlias(true);
    arcPaint.setColor(Color.parseColor("#3CB7EA"));
    arcPaint.setStrokeWidth(dp2px(2));
    arcPaint.setStyle(Paint.Style.STROKE);

    titlePaint = new Paint();
    titlePaint.setAntiAlias(true);
    titlePaint.setTextSize(sp2px(15));
    titlePaint.setColor(Color.parseColor("#3B434E"));
    titlePaint.setStyle(Paint.Style.STROKE);

    tempFlagPaint = new Paint();
    tempFlagPaint.setAntiAlias(true);
    tempFlagPaint.setTextSize(sp2px(25));
    tempFlagPaint.setColor(Color.parseColor("#E4A07E"));
    tempFlagPaint.setStyle(Paint.Style.STROKE);

    buttonPaint = new Paint();
    tempFlagPaint.setAntiAlias(true);
    paintFlagsDrawFilter = new PaintFlagsDrawFilter(0, Paint.ANTI_ALIAS_FLAG | Paint.FILTER_BITMAP_FLAG);

    tempPaint = new Paint();
    tempPaint.setAntiAlias(true);
    tempPaint.setTextSize(sp2px(60));
    tempPaint.setColor(Color.parseColor("#E27A3F"));
    tempPaint.setStyle(Paint.Style.STROKE);
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号