大家好,又见面了,我是你们的朋友全栈君。
AutoSize:
implementation 'me.jessyan:autosize:1.2.1' 2021/01/22
https://github.com/JessYanCoding/AndroidAutoSize
MQTT
https://github.com/mcxiaoke/mqtt
lottie:
Android :
https://github.com/airbnb/lottie-android
iOS : https://github.com/airbnb/lottie-ios
ReactNative : https://github.com/airbnb/lottie-react-native
三级联动的滚轮选择器:
https://github.com/androidzhangjin/citypicker
RxJava:
https://github.com/ReactiveX/RxAndroid
https://github.com/ReactiveX/RxJava
官网:reactivex.io
RxJava是响应式编程(Reactive Extensions)的java实现,它基于观察者模式的实现了异步编程接口。
Rxjava 3.0的一些改变:官方Wiki;https://github.com/ReactiveX/RxJava/wiki/What’s-different-in-3.0
Rxjava 3.x 文档可以在官方javadoc中找到: RxJava Javadoc 3.1.1
1,Retrofit + RxJava3组合使用
首先要引入依赖
implementation “io.reactivex.rxjava3:rxjava:3.0.0”
implementation ‘io.reactivex:rxandroid:1.2.1’
implementation ‘com.squareup.retrofit2:retrofit:2.7.0’
implementation ‘com.squareup.retrofit2:adapter-rxjava3:2.9.0’
相关配置module下的build.gradle
android {
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
注意Retrofit和RxJava组合使用时,Retrofit中使用的rxjava适配器(adapter-rxjava3)要和RxJava版本(io.reactivex.rxjava3:rxjava:3.0.0)一致;如本例都是使用的时3.0;关于先前Rerotfit没有Rxjava3.0适配器问题;android – Which rxjava3 retrofit-adapter should we use for Rxjava3 – Stack Overflow
android使用:
allprojects {
repositories {
maven { url "https://oss.jfrog.org/libs-snapshot" }
}
}
dependencies {
implementation 'io.reactivex.rxjava3:rxandroid:3.0.0'
// Because RxAndroid releases are few and far between, it is recommended you also
// explicitly depend on RxJava's latest version for bug fixes and new features.
// (see https://github.com/ReactiveX/RxJava/releases for latest 3.x.x version)
implementation 'io.reactivex.rxjava3:rxjava:3.0.0'
}
rxbinding:
防抖动
https://github.com/JakeWharton/RxBinding
Gson:
https://github.com/google/gson
android使用:
dependencies {
implementation 'com.google.code.gson:gson:2.8.7'
}
Gilde:
https://github.com/bumptech/glide/releases/tag/v4.7.0
历史发布版本:
https://github.com/bumptech/glide/releases
https://github.com/bumptech/glide
repositories {
google()
jcenter()
}
dependencies {
implementation ‘com.github.bumptech.glide:glide:4.11.0’
annotationProcessor ‘com.github.bumptech.glide:compiler:4.11.0’
}
OKHttp:
https://github.com/square/okhttp
官网 : OkHttp
dependencies {
// define a BOM and its version
implementation(platform(“com.squareup.okhttp3:okhttp-bom:4.9.0”))
// define any required OkHttp artifacts without version implementation(“com.squareup.okhttp3:okhttp”)
implementation(“com.squareup.okhttp3:logging-interceptor”)
}
okhttp3-loginterceptor
https://github.com/parkingwang/okhttp3-loginterceptor
retrofit:
https://github.com/square/retrofit/
implementation 'com.squareup.retrofit2:retrofit:2.9.0'
Butter Knife (jakewharton.github.io):
官网: Butter Knife
https://github.com/JakeWharton/butterknife
android {
...
// Butterknife requires Java 8.
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
dependencies {
implementation 'com.jakewharton:butterknife:10.2.3'
annotationProcessor 'com.jakewharton:butterknife-compiler:10.2.3'
}
JNA:git地址:
GitHub – java-native-access/jna: Java Native Access
kotlin:
https://github.com/android/architecture-components-samples
第三方动态权限请求框架
https://github.com/tbruyelle/RxPermissions
好看的天气项目:
https://github.com/wdsqjq/FengYunWeather
发布者:全栈程序员-用户IM,转载请注明出处:https://javaforall.cn/160268.html原文链接:https://javaforall.cn
【正版授权,激活自己账号】: Jetbrains全家桶Ide使用,1年售后保障,每天仅需1毛
【官方授权 正版激活】: 官方授权 正版激活 支持Jetbrains家族下所有IDE 使用个人JB账号...