origin Url Click here
- Kotlin
- Business logic must not be in View Layer
So I choose kotlin + MVVM to develop it.
- Third party libs
- BaseQuickerAdapter for quick build RV adapter
- SuperTextView for easy round-rect view and click ripple effect
- Okhttp for get internet information
- DataBinding for easy implement MVVM
- ViewModel for decoupling view and controller
- Myself libs
- BaseHttp
- Use BQA+RV to develop choose county Activity
- Use viewModel to get information from given json file
- display the information on CarDetailActivity
I am not good at Kotlin and MVVM,I often use MVC & Java because my company do like this . So I don't know how to write standard MVVM ,I think it is very terrible about my BindAdapter code. It may be better to avoid "do business logic in view layer" by using MVC + ViewModel for me.