github 项目地址

github 项目地址AutoSize:implementation’me.jessyan:autosize:1.2.1’2021/01/22https://github.com/JessYanCoding/AndroidAutoSize

大家好,又见面了,我是你们的朋友全栈君。

AutoSize:

implementation 'me.jessyan:autosize:1.2.1'  2021/01/22

https://github.com/JessYanCoding/AndroidAutoSize

MQTT

https://github.com/mcxiaoke/mqtt

lottie:

吊炸天的项目 — 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

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/160268.html原文链接:https://javaforall.net

(0)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

  • window openJdk 下载「建议收藏」

    window openJdk 下载「建议收藏」windowopenJDK下载

    2025年6月11日
    0
  • windows打开远程连接_windows怎么开启远程服务

    windows打开远程连接_windows怎么开启远程服务1.打开dos命令界面使用“Ctrl+R”组合键快速打开cmd窗口,并输入“cmd”命令,打开cmd窗口。2.使用“mysql-uroot-proot”命令可以连接到本地的mysql服务。3.使用“usemysql”命令,选择要使用的数据库,修改远程连接的基本信息,保存在mysql数据库中,因此使用mysql数据库。4.修改前先确认数据库是否已开启远程连接设置:5.使用“GRANTALLPRIVILEGESON.TO‘root’@’%’IDENTIFIEDBY‘

    2022年10月9日
    0
  • ADF检验「建议收藏」

    ADF检验「建议收藏」单位根检验是指检验序列中是否存在单位根,因为存在单位根就是非平稳时间序列了。单位根就是指单位根过程,可以证明,序列中存在单位根过程就不平稳,会使回归分析中存在伪回归。结果:(-0.04391111

    2022年8月1日
    4
  • kfold交叉验证_SPSS交叉验证法

    kfold交叉验证_SPSS交叉验证法一、前言在机器学习建模过程中,通行的做法是将数据分为训练集和测试集。测试集是与训练独立的数据,完全不参与训练,用于最终模型的评估。在训练过程中,经常会出现过拟合的问题,就是模型可以很好的匹配训练数据,却不能很好在预测训练集外的数据。如果此时就使用测试数据来调整模型参数,就相当于在训练时已知部分测试数据的信息,会影响最终评估结果的准确性。通常的做法是在训练数据再中分出一部分做为验证(Validation)数据,用来评估模型的训练效果。验证数据取自训练数据,但不参与训练,这样可以相对客观的评估模型对于训

    2022年9月20日
    0
  • 使用javascript下载网络图片「建议收藏」

    使用javascript下载网络图片「建议收藏」**因为某些原因需要使用js下载网站上的图片,查了万恶的某度,结果解决方案都是一样的,试了试,果然不行。于是乎,上stackoverflow一查,答案就出来了。直接上代码,很简单,答案使用jquery,改成原生js也不难的**functiondownloadImage(src){vara=$("<a></a>").attr("href",…

    2022年6月2日
    37
  • 如果你的评论被WordPress的Akismet插件屏蔽,怎么解封?

    如果你的评论被WordPress的Akismet插件屏蔽,怎么解封?

    2021年11月17日
    43

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号