Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ViewModel 的实现原理 - StefanJi #132

Open
stefanJi opened this issue Jan 12, 2020 · 0 comments
Open

ViewModel 的实现原理 - StefanJi #132

stefanJi opened this issue Jan 12, 2020 · 0 comments

Comments

@stefanJi
Copy link
Owner

@stefanJi stefanJi commented Jan 12, 2020

https://blog.jiyang.site/2020/01/12/ViewModel-%E7%9A%84%E5%AE%9E%E7%8E%B0%E5%8E%9F%E7%90%86/

Android Jetpack 提供了 ViewModel, 以用来维护 Activity 或 Fragment 中需要的数据。其能够在因配置改变(比如屏幕旋转)造成的 Activity 和 Fragment 重建时, 依然维护其内部的数据。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.