Following the example at https://github.com/manuelvicnt/RxJava-android-structure and its article in Medium: https://medium.com/@manuelvicnt/rxjava-android-mvvm-app-structure-with-retrofit-a5605fa32c00
This example is the implementation of a MVVM architecture for Android using RxJava 2 and Retrofit 2. It handles Views lifecycle as a way of improving the performance of your app