-
**Describe the bug**
My app is based on single architecture activity so there for only one activity and many fragments so I initialized orb instance in activity a store its reference to ViewModel to …
-
What is the best approach?
```
// Only expose livedata
public class MyViewModel extends ViewModel {
private MutableLiveData users = new MutableLiveData();
public void loadUsers() {
…
-
有LiveData 和ViewModel了 为啥还要用EventBus啊?
-
I have a question.
in browseSample we always `Transformations.switchMap()` to observe one input LiveData and set the value of `repoRepository.search(search)` to results. As below:
```
val results:…
-
// Lifecycle + ViewModel & LiveData
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycleVersion"
implementation "androidx.lifecycle:lifecycle-livedata-ktx:$lifecycleVers…
-
https://developer.android.com/topic/libraries/architecture/index.html
- ViewModel
- LiveData
- Lifecycles/LifecycleObserver/LifecycleOwner etc
- Room
-
Hello.
The example here covers only fetching immutable data. But for me, the most challenging is creating and updating existing data. How to handle validation of mutable data, when there is high coup…
-
To switch the domains for accounting default www.eshoptest.sk, www.ala.sk....
At Google I/O 2017, the Android Framework team announced the new Android Architecture Components. Namely ViewModel, LiveD…
-
Hi,
This is not an issue but a question. There is no other way to ask a question.
Why you did not use an MediatorLiveData instead of observing 3 differents LiveData like you do:
` viewMode…
-
Sometimes the ViewModel needs to invoke an action using an Activity (for example to show a snack bar or to navigate to a new activity). Using MVP it's easy to implement it because the presenter has a …