日常使用开源库
常用库明细
| 框架名称 |
GitHub地址 |
导入地址 |
使用项目 |
备注 |
| EventBus |
https://github.com/greenrobot/EventBus |
implementation 'org.greenrobot:eventbus:3.1.1' |
遂宁云 |
Library之间使用发现异常,未深究,当时通过注解解决 |
| EasyAndroid |
https://github.com/yjfnypeu/EasyAndroid |
implementation "com.github.yjfnypeu:EasyAndroid:1.2.5" |
遂宁云物业通 |
EasyPhoto在单例的启动模式下不能正常使用 |
| UpdatePlugin |
https://github.com/yjfnypeu/UpdatePlugin |
compile "com.github.yjfnypeu:UpdatePlugin:3.1.2" |
遂宁云物业通 |
必须自定义,apk文件下载地址为cache文件夹,WiFi下默认静默下载 |
| 网络请求库:Retrofit |
https://square.github.io/retrofit/ |
implementation 'com.squareup.retrofit2:retrofit:2.5.0' |
遂宁云 |
缺点是取消网络的部分需要自己封装,目前没有涉及 |
| 网络请求库:Gson |
https://github.com/google/gson |
implementation 'com.google.code.gson:gson:2.8.5' |
遂宁云 |
|
| 网络请求库:rx-android |
https://github.com/ReactiveX/RxAndroid |
implementation 'io.reactivex.rxjava2:rxandroid:2.1.0' |
遂宁云 |
|
| 网络请求库:RxJava |
https://github.com/ReactiveX/RxJava |
implementation "io.reactivex.rxjava2:rxjava:2.2.4" |
遂宁云 |
|
| UI库:三级联动框架 |
https://github.com/Bigkoo/Android-PickerView |
compile 'com.contrarywind:Android-PickerView:4.1.6' |
遂宁云 |
https://github.com/Bigkoo/Android-PickerView/wiki/中文说明文档(4.x版) |
| UI库:方形验证码 |
https://github.com/JackTuoTuo/VerificationCodeView |
implementation 'com.jacktuotuo.customview:verificationcodeview:1.0.4' |
遂宁云 |
|
| UI库:屏幕适配AndroidAutoSize |
https://github.com/JessYanCoding/AndroidAutoSize |
implementation 'me.jessyan:autosize:1.1.1' |
遂宁云 |
|
| UI库:photoView |
https://github.com/chrisbanes/PhotoView |
implementation 'com.github.chrisbanes:PhotoView:2.3.0' |
遂宁云 |
|
| UI库:Glide |
https://github.com/bumptech/glide |
implementation 'com.github.bumptech.glide:glide:4.8.0' |
遂宁云 |
annotationProcessor 'com.github.bumptech.glide:compiler:4.8.0' |
| UI库:banner |
https://github.com/youth5201314/banner |
compile 'com.youth.banner:banner:1.4.10' |
遂宁云 |
|
| UI库:Material Dialogs |
https://github.com/afollestad/material-dialogs |
implementation 'com.afollestad.material-dialogs:core:2.0.0-rc4' |
遂宁云 |
注意内边距 |
| UI库:base-adapter |
https://github.com/hongyangAndroid/baseAdapter |
compile 'com.zhy:base-rvadapter:3.0.3' |
遂宁云 |
注意分页加载的时候异常页面、加载更多、空白页的设置 |
| UI库:FlowLayout |
https://github.com/hongyangAndroid/FlowLayout |
compile 'com.hyman:flowlayout-lib:1.1.2' |
遂宁云物业通 |
|
| UI库:图片查看 |
|
implementation 'ch.ielse:imagewatcher:1.0.3' |
遂宁云物业通 |
作者有更新其它包名的新版本,只是觉得这个版本最简单 |
| UI库:朋友圈九宫格+图片选择 |
https://github.com/bingoogolapple/BGAPhotoPicker-Android |
implementation 'cn.bingoogolapple:bga-photopicker:1.2.8@aar' |
遂宁云物业通 |
一定要配合文档使用,否则不成功的 |
| UI库:多状态布局 |
https://github.com/SheHuan/StatusView |
implementation 'com.github.SheHuan:StatusView:1.0.5' |
|
https://www.jianshu.com/p/abbc70d1bce0 |