tianma8023 / tianma8023.github.io

:watermelon: static blog site based on Hexo. / 基于Hexo的博客.
http://tianma.space
4 stars 2 forks source link

Lifecycle 源码分析 #133

Open tianma8023 opened 2 years ago

tianma8023 commented 2 years ago

https://tianma8023.github.io/post/source-code-analysis-android-lifecycles/

Lifecycle 源码解析SafeIterableMap - 本质上是一个双链表伪装成的 Map,支持在遍历时候的修改(删除)操作 FastSafeIterableMap - 继承自 SafeIterableMap ,使用 HashMap 存取数据,速度更快,但同时占用内存也更大 Lifecycle 枚举常量: 123456789101112131415161718192021222324252