Giter VIP home page Giter VIP logo

retrofit_rxjava_mvp's Introduction

Retrofit_RxJava_MVP

Network uses Retrofit and RxJava With MVP architecture

Recent rxjava very fire, and then try to combine rxjava and Retrofit wrote a Demo, and try the next mvp

Branches night mode there is a problem, since you do not want to repeat the same functionality as written,night mode check my another demo https://github.com/7449/ZLSimple

NetWork RxJava2.X ?

https://github.com/7449/RxNetWork

Thanks tngou api interface http://www.tngou.net/doc/gallery

Description Framework

androidSupport
glide
rx
retrofit2
butterknife

retrofit_rxjava_mvp's People

Contributors

080901 avatar 7449 avatar bryant1410 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

retrofit_rxjava_mvp's Issues

楼主,重大Bug

在使用搜索的功能时,如果id输入为1,图片数量输入也为1,会报空指针异常
debug

xxxModelImpl中注册的Subscriber,什么时候unsubsribe ?

寻找RxJava例子看到这里,谢谢提供这么好的例子。
有个问题请教一下:
看到BaseActivity中Destroy的时候会调用unsubscribe(),但BaseActivity中的subscription成员一直没有赋值,而xxxModelImpl中注册的Subscriber,应该什么时候unsubscribe?

Fragment中同样。

Observable解绑问题

public static void newsDetail(int id, Subscriber<NewsDetailInfo> subscriber) {
    //当有两个请求的时候,第一个请求发送后数据数据还没返回的时候,第二个请求也发送,
    // 这个时候RxUtils.unsubscribe();就把第一个请求的订阅的对象解绑了,第一个请求就不能
    // 通过回调返回数据。我觉得应该在合适的地方进行解绑,比如activity 销毁的时候,把所有订阅的对象
    //全部解绑
    RxUtils.unsubscribe();
    RxUtils.subscription = Network.getTngouApi().getNewsDetail(id)
            .subscribeOn(Schedulers.io())
            .observeOn(AndroidSchedulers.mainThread())
            .subscribe(subscriber);
}

你觉得呢?

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.