Questions tagged [mvrx]

MvRx (pronounced mavericks) is the Android framework from Airbnb. MvRx is Kotlin first and Kotlin only. Here is the Wiki.

3 questions
1
vote
1 answer

How to skip network call with repeating events in test?

I'm not sure if I miss something in MvRx, MvRxTestRule or in RxJava. It's common that in a ViewModel I want to test a network call and if it triggers another call. So when I have something like this: fun fetchResult() { …
Herrbert74
  • 2,578
  • 31
  • 51
0
votes
1 answer

Instantiating a fragment on two containers only renders one of the fragments

I'm using MvRx and trying to understand a concept by instantiating two instances of a fragment on one screen. I think the problem is in my XML as no matter what I do, I only get one instance of the fragment. Any help would be…
lanierc
  • 182
  • 2
  • 12
0
votes
3 answers

Android studio is not able to resolve import

I am trying to work on a sample project to learn MvRx. However, seems something is wrong. Android Studio is not able to find and import activityViewModel automatically. 1) I tried to import it manually by writing its package name but it is still…
Hesam
  • 52,260
  • 74
  • 224
  • 365