draw
总执行绘制方法,调度其他的绘制方法
draw(Canvas canvas){
drawBackground(canvas) // private method,绘制背景
onDraw(canvas) //自身绘制内容
dispatchDraw(canvas) //绘制子View
onDrawForeground(canvas) //绘制前景 (6.0及以后加入View)
drawDefaultFocusHighlight: // Draw the default focus highlight onto the canvas
}
网友评论