Android Jetpack from use to source code deep cultivation [ViewModel from practice to principle] (2)

Above, we introduced the background, use, example coding, summary and analysis of the ViewModel. At the beginning of this article, we explored and summarized the source code of the ViewModel.

Android Jetpack from use to source code [ViewModel from practice to principle] (1)
Android Jetpack from use to source code [ViewModel from practice to principle] (2)
Android Jetpack from use to source code [ViewModel from practice to principle] (3 )
Android Jetpack from use to source code deep cultivation [ViewModel from practice to principle] (4)

1. Principle conjecture

Before exploring, it is still the old way, let's think about it, what are the key technical points here? Can we achieve it with what we have learned and thought? What difficulties will be encountered in the implementation process?

1.1 Data storage

This is undoubtedly the first question. Whether it is memory data structure storage or file storage, this is not a problem. We guess that ViewModel should rely on memory data structure storage. Some friends must ask? Why do you make such guesses?&#x

Guess you like

Origin blog.csdn.net/baobei0921/article/details/130388817