1,rxjava响应式编程
//rejava implementation 'io.reactivex.rxjava2:rxjava:2.1.16'
博客地址:https://github.com/ReactiveX/RxJava
2,rxandroid线程相关与rxjava搭配使用
//rxandroid implementation 'io.reactivex.rxjava2:rxandroid:2.0.2'
博客地址:https://github.com/ReactiveX/RxAndroid
3,retrofit网络请求
//retrofit implementation 'com.squareup.retrofit2:retrofit:2.4.0'
适配器:
implementation 'com.squareup.retrofit2:converter-scalars:2.4.0'//用于string。还有json等等,具体看博客 implementation 'com.squareup.retrofit2:adapter-rxjava2:2.4.0'
博客地址:https://github.com/square/retrofit
关于适配的博客:https://square.github.io/retrofit/
4,rxbinding事件
//rxbinding 不需要全部都用 implementation 'com.jakewharton.rxbinding2:rxbinding:2.1.1' implementation 'com.jakewharton.rxbinding2:rxbinding-support-v4:2.1.1' implementation 'com.jakewharton.rxbinding2:rxbinding-appcompat-v7:2.1.1' implementation 'com.jakewharton.rxbinding2:rxbinding-design:2.1.1' implementation 'com.jakewharton.rxbinding2:rxbinding-recyclerview-v7:2.1.1' implementation 'com.jakewharton.rxbinding2:rxbinding-leanback-v17:2.1.1'
博客地址:https://github.com/JakeWharton/RxBinding