美文网首页android MVVMandroid mvvm
Android MVVM 解读 1. 大纲

Android MVVM 解读 1. 大纲

作者: yqpan1991 | 来源:发表于2020-02-21 01:17 被阅读0次

    0. Background info

    1. Android MVVM Design Pattern
    2. Guide to app architecture
    3. Better Android Apps Using MVVM with Clean Architecture

    1. LifeCycle

    1.1. Handling Lifecycles with Lifecycle-Aware Components

    MVVM

    1.1.1 Activity

    SupportActivity
    insert ReportFragment

    1.1.2 Fragment

    support.v4.app.Fragment

    1.1.3 Service

    1. LifecycleService
    2. ServiceLifecycleDispatcher

    1.2. LifeCycle Relative Class

    1. LifeCycle
    2. LifecycleRegistry

    2. Observer

    3. LiveData

    Data --> LiveData<Data>

    RelativeClass

    1. LiveData
    2. MediatorLiveData
    3. ComputableLiveData
    4. Transformations

    4. ViewModel

    5. DataBinding

    1. 通过annotation 生成对应的DataBinderMapperImpl和DataBindingImpl

    2. findViewById,在DataBinding中,已经完成

    3. DataBindingComponent

      DataBindingComponent 问题答疑

    5. View

    相关文章

      网友评论

        本文标题:Android MVVM 解读 1. 大纲

        本文链接:https://www.haomeiwen.com/subject/dhdqqhtx.html