| | |
| | | * @desc 成长经历 viewModel |
| | | */ |
| | | public class GrowthExperienceActivityViewModel extends BaseViewModel<DataRepository> { |
| | | private MutableLiveData<GrowthExperienceBean> beanMutableLiveData; |
| | | private MutableLiveData<List<GrowthExperienceBean>> checkListLiveData; |
| | | private MutableLiveData<List<GrowthExperienceBean>> dataListLiveData; |
| | | private MutableLiveData<String> stringMutableLiveData; |
| | | |
| | | |
| | | |
| | | |
| | | public GrowthExperienceActivityViewModel(@NonNull Application application) { |
| | | super(application); |
| | |
| | | return DataRepository.getInstance(); |
| | | } |
| | | |
| | | @Override |
| | | public void onCreate(@NonNull LifecycleOwner owner) { |
| | | super.onCreate(owner); |
| | | GrowthExperienceActivityViewModel viewModel=new ViewModelProvider(this).get(GrowthExperienceActivityViewModel.class); |
| | | DataBindingUtil.setContentView(this, R.layout.activity_growth_experience).setViewModel(viewModel); |
| | | } |
| | | } |