MVVM架构:LiveData + ViewModel + Repository搭配的三种解决方案
publicclassType1ViewModelextendsBaseViewModel{publicType1ViewModel(@NonNullApplicationapplication){super(application);}publicLiveDatagetLiveData1(){returnrepository.getLiveData1();}publicLiveDatagetLi