Skip to content
This is an example of interactions between Activity and it's Fragments using Android Model View Presenter
Branch: master
Clone or download
Latest commit af8e14c Oct 16, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
gradle/wrapper
.gitignore
Licence.md Added a licence file and updated the readme with more information Feb 13, 2015
README.md
build.gradle
composer.json
gradle.properties Initial commit Jun 29, 2014
gradlew
gradlew.bat
settings.gradle

README.md

ActivityFragmentMVP

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.

The scoped object graph is created in the OnCreate() method of any Activity that extends BaseActivity. You just need to override the getModules() method in your concrete Activity implementations to load the module for that activity.

Fragments, by way of the BaseFragment superclass method inject(), inject an instance of themselves into the Activities graph.

Featured on
Android Arsenal

You can’t perform that action at this time.