android10 / android10/Android-CleanArchitecture-Kotlin

Android Arch Components handle configuration changes / lifecycle

未關閉
#63 4 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
discussion question
主要語言
Kotlin
星號
4.8k
分支
929
PR 合併指標
30 天內沒有已合併 PR

描述

you said

> At implementation level, in our example, MVVM is accomplished by the usage of Architecture Components, which its main advantage is to handle configuration changes when the screen rotates, something that has given us many headaches as android developers (I guess you know what I’m talking about).
>
> **Disclaimer: that does not mean we have to no longer care about lifecycles, but it is way easier.**

ViewModel was created to handle the configuration / lifecycle for you.

[viewModel](https://developer.android.com/topic/libraries/architecture/viewmodel)
[viewModel Lifecycle](https://developer.android.com/reference/android/arch/lifecycle/ViewModel)

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。