A sample project of Android MVP architecture.
In this sample project includes some of useful libraries for Android, such as:
- Retrofit: A type-safe REST client for Android which intelligently maps an API into a client interface using annotations.
- Picasso: A powerful image downloading and caching library for Android.
- ButterKnife: Using Java annotations, makes Android development better by simplifying common tasks.
- LeakCanary: Catch memory leaks in your apps
- Material Dialogs: A beautiful, easy-to-use, and customizable dialogs API, enabling you to use Material designed dialogs down to API 8.
- CircleImageView: A circular ImageView for Android
Before we go through to learn this architecture, I hope you've understand about the Clean Architecture (from Uncle Bob, Dario Miličić, and Android10). This architecture is the simple combination from those references. So, this architecture makes your code:
- Independent of Frameworks.
- Testable.
- Independent of UI.
- Independent of Database.
- Independent of any external agency.
This project using sample API from My Site
- https://github.com/codepath/android_guides/wiki/Must-Have-Libraries
- https://github.com/futurice/android-best-practices
- https://blog.8thlight.com/uncle-bob/2012/08/13/the-clean-architecture.html
- https://medium.com/@dmilicic/a-detailed-guide-on-developing-android-apps-using-the-clean-architecture-pattern-d38d71e94029#.8b4imw33h
- http://fernandocejas.com/2014/09/03/architecting-android-the-clean-way/