JPatterns is a collection of annotations that should make it easier to communicate the use of Design Patterns within your code to your fellow developers and your future self.
Design Patterns are typically encoded into Java code in an ad-hoc fashion. They are either embedded into the names of the classes or written into the Javadocs. Unfortunately it is impossible to accurately determine a pattern based solely on the class structure without knowing the intent of the code author.
This repository showcases and compares different architectural patterns that can be used to build Android apps. The exact same sample app is built three times using the following approaches:
A demonstration of handling Activities and Fragments using Dagger dependency injection framework
The real benefit here is that you create an object graph only when you need it. This contributes to keeping the memory footprint of your app as low as possible.
Sample project about standard
Model-View-Presenter pattern usage with additional contents: