ViewModel 实现原理:为什么屏幕旋转后数据不丢失

一篇简明笔记,解释 ViewModel 为什么能跨屏幕旋转存活,以及带参数的 ViewModel 应该如何创建。

March 27, 2026 · 1 min