I am using Android Support Library 26.1.0. These are the dependencies in app module - implementation "android.arch.lifecycle:runtime:1.0.0" implementation "…
java android android-architecture-components android-architecture-lifecycleI have a ViewModel named SharedViewModel: public class SharedViewModel<T> extends ViewModel { private final MutableLiveData<T> …
android android-fragments android-activity viewmodel android-architecture-lifecycleIn my ViewModel, I load data using private val pagingConfig = PagedList.Config.Builder() .setEnablePlaceholders(false) .setInitialLoadSizeHint(INITIAL_LOAD_SIZE_HINT) .…
android-architecture-components android-jetpack android-livedata android-paging android-architecture-lifecycleI tried to add a unit test for my function which supports architecture components lifecycle event. To support lifecycle event, …
android android-testing android-architecture-components android-architecture-lifecycleFor anyone having this question, As per Android Documentation, Since the ViewModel outlives specific activity and fragment instantiations, it should …
android android-mvvm android-architecture-lifecycleI have a need to transform one type of data, returned by a LiveData object, into another form on a …
android android-room android-architecture-components android-thread android-architecture-lifecycle