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)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

  • java pfx,如何从Java中的PFX文件读取公钥[通俗易懂]

    java pfx,如何从Java中的PFX文件读取公钥[通俗易懂]IamabletoreadprivatekeyfromPFXfilebutnotpublickey.Iamusingfollowingcodetoreadpublickey.InputStreaminStream=newFileInputStream(certFile);CertificateFactorycf=CertificateFac…

    2022年5月1日
    267
  • mysql截取中文字符_mysql截取字符串函数-Go语言中文社区

    mysql截取中文字符_mysql截取字符串函数-Go语言中文社区目标将rull字段值的0.1g*14粒/1.5mg*30片/100ml(氨甲环酸0.5g:氯化钠0.84g)*1瓶中的mg/g/ml开头的数字取出设置到另外一个字段上去SELECTidfromsheet2whererulllike’%ml%’;SELECTid,count,LEFT(rull,LOCATE(‘g’,rull)-1)fromsheet2w…

    2022年5月5日
    132
  • laravel 共享session问题总结

    laravel 共享session问题总结

    2021年11月7日
    36
  • Linux中修改文件权限方法「建议收藏」

    Linux中修改文件权限方法「建议收藏」​一、文件类型在Linux操作系统中,一切皆文件,Linux不以扩展名来区分文件类型,而是在文件属性中有一列专门记录文件类型。普通文件:.c.cpp.h.txt.pdf用’-‘表示目录文件(文件夹):用’d‘表示管道文件(用于进程间通信的一种文件):用’p’表示链接文件(相当于Windows上的快捷方式):用’l’表示设备文件:字符设备文件(c)块设备文件(b)套接字(s)用ls-l查看文件属性信息

    2025年8月30日
    5
  • 使用Windows Live Writer 常见的几个Blog接口

    使用Windows Live Writer 常见的几个Blog接口Pjblog:MovableTypehttp://你的Blog根目录/xmlrpc.aspi170:MetaWeblogAPIhttp://www.i170.com/user/你的i170的用户名Blogbus:Blogger       http://rpc.blogbus.com/bloggermydonews:htt

    2022年10月19日
    0
  • java 程序设计题库

    java 程序设计题库答题要求:单选题,每题只有一个正确答案,选择正确给分,不正确不给分。1、下面(A)数据类型可用于main()方法中传递的参数A、StringB、IntegerC、BooleanD、Variant2、以下的选项中能正确表示Java语言中的一个整型常量的是(B)A、12.B、-20C、1,000D、4563、下列的变量定义…

    2022年6月21日
    23

发表回复

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

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