view

View的工作流程

View的工作流程,指的就是measure、layout和draw。

  • measure用来测量View的宽和高
  • layout用来确定View的位置
  • draw则用来绘制View