tianma8023/tianma8023.github.io

Lifecycle 源码分析

Opened this issue · 0 comments

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

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