Giter Site home page Giter Site logo

blueflychief / droidmvp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from andrzejchm/droidmvp

0.0 2.0 0.0 244 KB

Small Android library to help you incorporate MVP, Passive View and Presentation Model patterns in your app

Home Page: https://medium.com/@andrzejchm/presentation-model-and-passive-view-in-mvp-the-android-way-fdba56a35b1e#.o8rb6bwji

License: Apache License 2.0

Java 100.00%

droidmvp's Introduction

DroidMVP

mvp diagram

Release Android Arsenal CircleCI

##About DroidMVP is a small Android library to help you incorporate the MVP pattern along with Passive View and Presentation Model (yes, those can be combined together :) ) within your Android project.

##Explanation

mvp diagram

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

Add it in your root build.gradle at the end of repositories:

allprojects {
  repositories {
      ...
      maven { url "https://jitpack.io" }
  }
}

Add the dependency to your app's build.gradle

  dependencies {
    compile 'com.github.andrzejchm:DroidMVP:0.1.3'
  }

##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 This library makes it easy to use it with dependency injection frameworks like Dagger. To see how it could be done, check out the Sample project, specifically the BaseFragment or BaseActivity

##Sample Project A small android app which uses Dependency Injection along with DroidMVP can be found here

Without dagger can be found here.

With Parcelable PresentationModel can be found here.

droidmvp's People

Contributors

andrzejchm avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.