一、onDraw()
override fun onDraw(canvas: Canvas?) { super.onDraw(canvas) canvas.drawXX(x,x,paint) }
二、Paint 画笔
可实现多种效果,如渐变
drawText,为什么TextView的宽度比实际要宽?
参考:https://juejin.cn/post/6844903488460177416#heading-23
标签:Canvas,自定义,流程,onDraw,canvas,View From: https://www.cnblogs.com/suiyilaile/p/17067967.html