首先在Activity的onCreate()方法里面setContentView,点进去

再点到getWindow()的setContentView();也就是抽象类Window的的setContentView(),然后看到Window顶部的提示:PhoneWindow是Window的唯一实现类

可以找到PhoneWindow的setContentView()方法,找到installDecor这个方法,点进去







首先在Activity的onCreate()方法里面setContentView,点进去
再点到getWindow()的setContentView();也就是抽象类Window的的setContentView(),然后看到Window顶部的提示:PhoneWindow是Window的唯一实现类
可以找到PhoneWindow的setContentView()方法,找到installDecor这个方法,点进去
本文标题:Android界面的绘制流程
本文链接:https://www.haomeiwen.com/subject/ekchxctx.html
网友评论