86

剖析Activity、Window、ViewRootImpl和View之间的关系 - 简书

 6 years ago
source link: https://www.jianshu.com/p/a7596afb1aa1?
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
本文梳理了Activity、View、Window、ViewRoot、Surface、AMS、WMS之间的关系,由于跳转间的流程纷繁复杂,一旦陷入代码细节就难以自拔,下文中分析省略掉很多细节,想了解的可以阅读源码或者阅读相对应的书籍。 概念定义 ContextImpl:Context实现类。 PhoneWindow:Window唯一实现类。Window是一个抽象概念,是添加到WindowMa...

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK