You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

DashboardViewModel.java 458B

12345678910111213141516171819
  1. package com.example.meinwald.ui.area;
  2. import androidx.lifecycle.LiveData;
  3. import androidx.lifecycle.MutableLiveData;
  4. import androidx.lifecycle.ViewModel;
  5. public class DashboardViewModel extends ViewModel {
  6. private MutableLiveData<String> mText;
  7. public DashboardViewModel() {
  8. mText = new MutableLiveData<>();
  9. mText.setValue("This is dashboard fragment");
  10. }
  11. public LiveData<String> getText() {
  12. return mText;
  13. }
  14. }