wm.addView(decor,l);
-->WindowManagerImpl.addView()
-->ViewRootImpl.setView(view, wparams, panelParentView);
-->requestLayout();
-->scheduleTraversals();
--> doTraversal();
-->performTraversals();//到这里才开始View的绘制流程.
wm.addView(decor,l);
-->WindowManagerImpl.addView()
-->ViewRootImpl.setView(view, wparams, panelParentView);
-->requestLayout();
-->scheduleTraversals();
--> doTraversal();
-->performTraversals();//到这里才开始View的绘制流程.
本文标题:自定义View - 14.View绘制流程入口
本文链接:https://www.haomeiwen.com/subject/bgzcuftx.html
网友评论