Android MVVM boilerplate inspired by android-boilerplate and powered by data-binding
It's similar to android-boilerplate, differences:
Presenter
toViewModel
EventBus
toRxBus
shareReferenceHelper
is not proxied by data manager, but a static tools.
- Data-Binding
- RxJava2
- Retrofit2
- OKHttp
- binding —> binding adapters for databinding
- data —> Model(network, database)
- ui —> View and ViewModel(ui and business logic)
- util —> common tools
- widget —> common widget
Leverage Retrofit2
and RxJava2
to parse response and handle error(including loading) in common place, we just deal with data in business logic.
No need to write adapter agian and agian, with data-binding and BaseBindingRecycleViewAdapter, we just need provide a layout file and the array of data, then we get a recycleView
Activity and Fragment are wrappered and easy to initialize.