The popular RxJava+Retrofit+Okhttp+Mvp package of a demo, simple, easy to understand, depth of decoupling, convenient iteration, in short is cool.

RxJava+Retrofit+ OKHTTP + MVP, now popular this set of framework packaging, thinking about thinking about their own packaging a set, and – and our project is also used in this way, convenient for the future functional iterative development, product requirements change, any deficiencies, welcome issues, if you feel there is a reference, Welcome to star.

  • ## MVP concept ##

    • M Model (Network request, data processing)
    • V view(activity,fragment)
    • P Presenter (Core Logic)
    • See, github.com/gslovemy/Mv… , welcome to star
  • ## RxJava ##

    • RxJava – a library for composing Asynchronous and event-based programs using Observable sequences for composing The Java VM” (a library that uses observable sequences on the Java VM to compose asynchronous, event-based programs). This is RxJava, and it’s summed up very precisely. In fact, the essence of RxJava can be reduced to the word asynchronous. At its root, it is a library that implements asynchronous operations on which all other attributes are based. IO /post/560e15…
  • ## Retrofit ##

    • Both Retrofit and OkHTTP came from Square, and Retrofit is a wrapper around OkHTTP. Leaving all the web requests to Okhttp, we simply configured Retrofit to make web requests using the traditional Callback API as well as the RxJava version of an Observable API. You can refer to blog.csdn.net/bitian123/a…
  • ## okhttp ##

    • A very powerful library network request, you can refer to blog.csdn.net/lmj62356579…
  • ## The effect picture shows ##

  • The package structure is as follows ##

    • model : LoginModel
    • Presenter: LoginPresenter
    • View: Activity, Fragment,etc.
    • base:BaseAcitivity,BasePresenter,etc.
    • mvp IView, IModel,IPresenter.
    • Contract class, interface definition.
    • Unitls toolbar.
    • Encapsulation of HTTP network requests
    • Exception User-defined exception
    • Transformer (my own understanding)
    • Url Defines the link address
    • Subsciriber Subscriber (Observer)
  • ## Thanks ## Hi Hon ocean