I have a problem with liveData. It doesn't update the fragment with the information. I think it unsubscribes from viewLifecycleOwner at some particula ...
I have a problem with liveData. It doesn't update the fragment with the information. I think it unsubscribes from viewLifecycleOwner at some particula ...
I am having a LiveData observer inside fragment, sometimes the code inside Observer{} throws error It is happening because requireActivity() is ret ...
I want to use mvvm in Dialog but I don't know how to pass LifecycleOwner to observe I have tried context as LifecycleOwner, context as AppCompatAct ...
I am new to the lifecycle observer (fragment). I am trying to link the views defined in XML with fragment. traditionally, we use to do it in onActivit ...
I need to pass activity to a LifecycleObserver class for a location task: The LocationObserver is created and used in the fragment: The question ...
Consider a layout data-bound to a viewModel. More specifically, the layout uses a layout variable for accessing this underlying viewModel. Whenever th ...
I'm trying to make floating cameraview for my screen recorder application. FloatingViewService.java layout_floating_widget.xml BackgroundServic ...
I am working with the MVVM architecture. The code When I click a button, the method orderAction is triggered. It just posts an enum (further logic w ...
I'm trying to implement ViewModel in a app which get some data from Firestore using the FirestorepagingAdapter, and displays it in a recyclerview. I'm ...
I am developing news app and I have implemented livedata with progress bar but I am getting following exception in my code below my TopHeadlinesFra ...
I created an Observer in a Fragment which works perfectly (it fires a toast when an Int increases), but when I try to move this code into the Activity ...
https://developer.android.com/topic/libraries/architecture/lifecycle#implementing-lco The docs say that Fragments and Activities in Support Library 2 ...