View绘制流程
2022-01-03 22:25:17 4 举报
zzz
作者其他创作
大纲/内容
performDraw
setView
handleResumeActivity
doTraversals
performLaunchActivity
performTraversals
挂在DecorView;进行第一次测量和布局
addView
performLayout
installDecor
ActivityThread
ViewRootImpl
WindowManagerImpl
onResume
TransactionExecutor
handleLaunchActivity
创建DecorView
handleMessage
setContentView
scheduleTransaction
AppCompatDelegateImpl
这个阶段主要是为了Activity创建PhoneWindow及Activity中属性赋值
attach
ResumeActivityItem
ApplicationThread
构造方法
performResumeActivity
execute
PhoneWindow
ensureDecor
Activity
创建ViewRootImpl关联WindowManagerService
sendMessageEXECUTE_TRANSACTION
performMeasure
LaunchActivityItem
onCreate
0 条评论
回复 删除
下一页