使用集合让一切井井有条 根据您的偏好保存内容并对其进行分类。

架构组件

  1. Which of the following are reasons to use a ViewModel?

    选择合适的多项回答。

  2. A ViewModel is destroyed after which of the following ?
  3. True or False: You should execute time-consuming tasks and I/O requests in your Activity/Fragment.
  4. Why should you initialize and store LiveData in your ViewModel instead of a UI Controller?
  5. Which of the following allows you to use observe for changes?
  6. True or False: It’s OK for a ViewModel to directly reference a View or LifecycleOwner class.