Skip to content

Commit

Permalink
Merge pull request #16 from bryant1410/develop
Browse files Browse the repository at this point in the history
Fix broken headings in Markdown files
  • Loading branch information
andrzejchm committed Apr 17, 2017
2 parents 7d83a06 + 0f9a2ac commit f8c5b27
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@
[![Release](https://jitpack.io/v/andrzejchm/DroidMVP.svg)](https://jitpack.io/#andrzejchm/DroidMVP) [![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-DroidMVP-green.svg?style=true)](https://android-arsenal.com/details/1/3776)
[![CircleCI](https://circleci.com/gh/andrzejchm/DroidMVP/tree/develop.svg?style=svg)](https://circleci.com/gh/andrzejchm/DroidMVP/tree/develop)

##About
## About
DroidMVP is a small Android library to help you incorporate the [**MVP pattern**](http:https://antonioleiva.com/mvp-android/) along with [**Passive View**](http:https://martinfowler.com/eaaDev/PassiveScreen.html) and [**Presentation Model**](http:https://martinfowler.com/eaaDev/PresentationModel.html) (yes, those can be combined together :) ) within your Android project.

##Explanation
## Explanation
<p align="center">
<img align="cetnter" src="mvp-diagram.png" alt="mvp diagram" />
</p>
A short explanation of PassiveView, PresentationModel and how to use it with DroidMVP can be found [in this article](https://medium.com/@andrzejchm/presentation-model-and-passive-view-in-mvp-the-android-way-fdba56a35b1e)

##Setup
## Setup

Add it in your root `build.gradle` at the end of repositories:
```groovy
Expand All @@ -36,13 +36,13 @@ Add the dependency to your app's `build.gradle`
}
```

##Composition over inheritance
## Composition over inheritance
If by any chance you cannot extend from `DroidMVPActivity` or `DroidMVPFragment` you can always use the `DroidMVPViewDelegate`. Just make sure to bind it with your activity's or fragment's lifecycle the same way the `DroidMVPFragment` or `DroidMVPActivity` does it.

##Dependency Injection
## Dependency Injection
This library makes it easy to use it with dependency injection frameworks like [Dagger](http:https://google.github.io/dagger/). To see how it could be done, check out the [**Sample project**](/sample-dagger), specifically the `BaseFragment` or `BaseActivity`

##Sample Project
## Sample Project
A small android app which uses Dependency Injection along with **DroidMVP** can be found
[**here**](/sample-dagger)

Expand Down

0 comments on commit f8c5b27

Please sign in to comment.