2021
04-27
04-27
Android自定义View-Paint详解
Paint的使用setStylePaint.Style.FILL:填充模式Paint.Style.STROKE:画线模式Paint.Style.FILL_AND_STROKE:填充+画线paint.setStyle(Paint.Style.FILL);canvas.drawCircle(200,100,100,paint);paint.setStyle(Paint.Style.STROKE);canvas.drawCircle(200,350,100,paint);paint.setStyle(Paint.Style.FILL_AND_STROKE);canvas.drawCircle(200,600,100,paint);setStrokeCap设置线头形状:BUFF:平头ROUND:圆...
继续阅读 >