Giter Club home page Giter Club logo

simplemvp's Introduction

SimpleMvp

一个精简的Android MVP框架,网络请求使用RxJava+Retrofit将更为方便

Model:框架中的模型超类,负责提供数据;

View:框架中的视图超类,负责UI展示;

Presenter:程序中的逻辑超类,负责处理具体事务;

BaseMvp:用于创建Model、View和Presenter;

BasePresenter:所有Presenter层的抽象类,负责Model、View层的引用和销毁;

BaseMvpActivity:Activity基类,具体的实现Model、View的绑定,我们自己的Activity可直接继承于此类或者自行实现BaseActivity继承于此类;

BaseMvpFragment:Fragment基类,具体作用和BaseMvpActivity相同。

代码详情可点击以下链接

https://www.jianshu.com/p/51c4681f7f94

simplemvp's People

Contributors

chengzhicao avatar

Watchers

James Cloos 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.