IDE Used : Android Studio
IDE Version : 3.5
Language : Kotlin
Project Structure : MVP(Model View Presenter)
Min Api Level :19
Max Api Level :29
This project contain simple example of search using MVP structure. For networking : Retrofit and Rx-java are used.
Model–view–presenter (MVP) is a derivation of the model–view–controller (MVC) architectural pattern which mostly used for building user interfaces. In MVP, the presenter assumes the functionality of the “middle-man”. In MVP, all presentation logic is pushed to the presenter. MVP advocates separating business and persistence logic out of the Activity and Fragment.
- Retrofit - for networking
- Rx-Java - for multithreading
- Kotlin - Language used
- AndroidX - Support Library
app- Contains all the Eloquent modelsbase- Contains base classes which contains common methods used in every classpresenter-Presenter contains classes which are used to generate Views and bind Objects to them on demand. It is closely related to the concept of an RecyclerView.Adapter, but is not position-based. The leanback framework implements the adapter concept using ObjectAdapter which refers to a Presenter (or PresenterSelector) instance.
- api: It contains all the Model and networking Api's.
- ui: View classes along with their corresponding Presenters.
- utils: Utility classes.
