[TOC]
目录
Android开发常用依赖库(三方开源框架)
1.功能/工具/框架等
Android相关依赖 androidx/material/constraintlayout
日志相关log(timber/logger/xlog)
测试框架(mockito/robotium/robolectric)
工具相关util(blankj/xutils/guava)
网络访问相关okhttp3/retrofit2/volley
代码框架 MVVM
简化代码(rxjava2/rxerrorhandler/RxCache)
依赖注入hilt/dagger2
异常捕获Bugly/umeng/xcrash
热修复(Tinker/AndFix/Robust/dexposed)
插件框架/组件化(replugin/Shadow/Qigsaw/atlas)
数据持久化(room/DataStore)
事件消息(EventBus/otto/mqtt)
图表组件(MPAndroidChart/HelloCharts/WilliamChart)
二维码/条码(zxing/hms/mlkit/opencv)
地图定位(高德/百度/腾讯/google)
文件解析(json/HTML/xml/csv)
对象存储服务(OSS/OBS/COS/MinIO)
WebView框架
应用启动
2.图片/动画/视频等
图片加载/查看(Glide/Picasso/fresco/coil)
图片缩放/裁剪/压缩/模糊(PhotoView/CircleImageView/Compressor/uCrop/Luban)
图片选择器(PictureSelector/boxing/BGAPhotoPicker/EasyPhotos/Matisse)
轮播图 banner/viewpager/StereoView/Roll3DImageView
动画(AndroidViewAnimations/Transitions-Everywhere/Material-Animations)
骨架屏基础占位 (skeleton/ShimmerRecyclerView/spruce-android)
视频播放(ijkplayer/JZVideo/GSYVideoPlayer/ExoPlayer/PLDroidPlayer)
Loading动画(SpinKit/AVLoadingIndicatorView/Loading/LoadingDrawable)
3.弹框/列表/样式/字体/其他UI等
Dialog弹框(FlycoDialog/material-dialogs/Android-AlertView)RecyclerView
列表刷新(SmartRefreshLayout/MultipleStatusView/SwipeRecyclerView/ShimmerRecyclerView)
导航栏
换肤/主题样式
字体
其他Ui
Android开发常用依赖库(三方开源框架)
很多依赖除了需要依赖库之外还需要依赖插件,为了方便查看搜索,本文仅仅显示依赖库不列出插件,后续有空在对各个库使用详细说明.
dart/groovy
1.功能/工具/框架等
Android相关依赖 androidx/material/constraintlayout
这些依赖一般在创建项目的时候,android studio会自动加上这些依赖
implementation 'androidx.core:core-ktx:1.10.1' //编写 Kotlin 代码更加简洁和自然,供了一系列扩展函数
implementation 'androidx.appcompat:appcompat:1.6.1' //appcompat 库提供了兼容性支持
implementation 'com.google.android.material:material:1.9.0' //提供了遵循 Material Design 规范的各种UI组件
implementation 'androidx.constraintlayout:constraintlayout:2.1.4' //约束布局,灵活的布局方式
此外还有一些测试相关的也会自动添加上,我这里就不列出.
日志相关log(timber/logger/xlog)
详细参考链接 https://www.jianshu.com/p/b8e8a6e6db34
implementation 'com.jakewharton.timber:timber:5.0.1'
implementation 'com.orhanobut:logger:2.2.0'
implementation 'com.elvishew:xlog:1.11.1'
测试框架(mockito/robotium/robolectric)
//mockito https://blog.csdn.net/IT_LanTian/article/details/121356565
//Mockito for unit tests
testImplementation "org.mockito:mockito-core:2.+"
//Mockito for Android tests
androidTestImplementation 'org.mockito:mockito-android:2.+'
//https://gitcode.com/gh_mirrors/ro/robotium
//https://android-docs.cn/training/testing/local-tests/robolectric
testImplementation("org.robolectric:robolectric:4.13")
//https://blog.csdn.net/Mr_JingFu/article/details/142035166
//https://gitcode.com/gh_mirrors/ro/robolectric-gradle-plugin
工具相关util(blankj/xutils/guava)
推荐blankj 详细参考连接 https://www.jianshu.com/p/d0e28d9a6e2e
// if u use AndroidX, use the following
implementation 'com.blankj:utilcodex:1.31.1'
// Not in maintenance
implementation 'com.blankj:utilcode:1.30.7'
implementation("org.apache.commons:commons-lang3:3.17.0") //java 工具包
implementation 'com.google.guava:guava:31.0.1-android' //后台开发用-jre;Android开发用-android
implementation 'org.xutils:xutils:3.8.12' //xUtils框架
网络访问相关okhttp3/retrofit2/volley
推荐retrofit2 使用参考 https://blog.csdn.net/carson_ho/article/details/73732076
implementation 'com.squareup.okhttp3:okhttp:4.12.0' //Okhttp依赖
implementation 'com.squareup.okhttp3:logging-interceptor:4.12.0'//日志拦截器
implementation 'com.squareup.okhttp3:okhttp-urlconnection:4.12.0'//OkHttp 处理标准的 URLConnection 请求
//retrofit依赖 简化网络请求的处理过程
implementation 'com.squareup.retrofit2:retrofit:2.11.0' //retrofit依赖,底层是okhttp实现
implementation 'com.squareup.retrofit2:converter-gson:2.11.0' //添加Json数据的支持
implementation 'com.squareup.retrofit2:adapter-rxjava2:2.11.0' //添加对RxJava的支持
implementation 'me.jessyan:retrofit-url-manager:1.4.0'//管理 Retrofit 网络请求库的基础 URL 的库
//此外还有volley和AsyncHttpClient,不过相比okhttp和retrofit喝使用没那么多
implementation 'com.android.volley:volley:1.2.1' //简化网络请求
implementation 'com.loopj.android:android-async-http:1.4.11'
代码框架 MVVM
推荐xiaobailong24的 详情见: https://www.jianshu.com/p/827967a0940f
一般企业会把对源码处理把 arms,repository, lifecycle 这三处理后 个作为aar发布到企业Maven仓库
此外还有一些之前使用过的框架
//MVVMHabit
implementation 'com.github.goldze:MVVMHabit:3.1.4'
//binding-collection-adapter https://github.com/evant/binding-collection-adapter
implementation 'me.tatarka.bindingcollectionadapter2:bindingcollectionadapter:2.2.0'
implementation 'me.tatarka.bindingcollectionadapter2:bindingcollectionadapter-recyclerview:2.2.0'
//FlowBinding https://gitcode.com/gh_mirrors/fl/FlowBinding/
implementation "io.github.reactivecircus.flowbinding:flowbinding-android:1.2.0"
//https://gitcode.com/gh_mirrors/vi/ViewBindingKTX
implementation 'com.github.DylanCaiCoding.ViewBindingKTX:viewbinding-ktx:2.1.0'
implementation 'com.github.DylanCaiCoding.ViewBindingKTX:viewbinding-nonreflection-ktx:2.1.0'
implementation 'com.github.DylanCaiCoding.ViewBindingKTX:viewbinding-base:2.1.0'
implementation 'com.github.DylanCaiCoding.ViewBindingKTX:viewbinding-brvah:2.1.0'
简化代码(rxjava2/rxerrorhandler/RxCache)
rxjava2使用参考: https://blog.csdn.net/FlyRabbit_1/article/details/104554438
//rxjava2(响应式编程)
implementation "io.reactivex.rxjava2:rxjava:2.2.21"
implementation "io.reactivex.rxjava2:rxandroid:2.1.1"
//xErrorHandler 是一个用于处理 RxJava 异常 https://blog.csdn.net/gitblog_00233/article/details/144904359
implementation 'me.jessyan:rxerrorhandler:2.1.1' // 对应Rxjava2的版本
//RxCache 是一个用于 Android 和 Java 的响应式缓存库 https://blog.csdn.net/gitblog_00436/article/details/143791501
// 使用 Gson
implementation 'com.github.VictorAlbertos.Jolyglot:gson:0.0.4'
// 使用 Jackson
implementation 'com.github.VictorAlbertos.Jolyglot:jackson:0.0.4'
// 使用 Moshi
implementation 'com.github.VictorAlbertos.Jolyglot:moshi:0.0.4'
implementation "com.github.VictorAlbertos.RxCache:runtime:1.8.1-2.x"
依赖注入hilt/dagger2
hilt使用参考 https://www.jianshu.com/p/1fa1726643d9 (Hilt 在 Dagger 的基础上构建而成)
dagger2使用参考 https://blog.csdn.net/y2653904/article/details/134656782
//Hilt
//官方文档 https://developer.android.google.cn/codelabs/android-hilt
//官方文档 https://developer.android.google.cn/training/dependency-injection/hilt-android
implementation "com.google.dagger:hilt-android:2.40.5"
kapt "com.google.dagger:hilt-compiler:2.40.5"
//dagger2
//官方文档 https://developer.android.google.cn/training/dependency-injection/dagger-basics
implementation "com.google.dagger:dagger:2.55"
implementation "com.google.dagger:dagger-compiler:2.55"
implementation "com.google.dagger:dagger-android:2.55"
implementation "com.google.dagger:dagger-android-support:2.55"
implementation "com.google.dagger:dagger-android-processor:2.55"
//Koin
implementation "io.insert-koin:koin-core:4.0.2"// Koin Core
implementation "io.insert-koin:koin-android:4.0.2"// Koin Android
implementation "io.insert-koin:koin-androidx-scope:4.0.2"// Koin Androidx Scope
implementation "io.insert-koin:koin-androidx-viewmodel:4.0.2"// Koin Androidx ViewModel
implementation "io.insert-koin:koin-android-ext:4.0.2"// Koin Android Experimental (如果需要的话)
//ButterKnife
implementation 'com.jakewharton:butterknife:10.2.3'
annotationProcessor 'com.jakewharton:butterknife-compiler:10.2.3'
异常捕获Bugly/umeng/xcrash
崩溃异常捕获详细见文档 https://www.jianshu.com/p/f6552da6234a
//umeng 友盟
implementation 'com.umeng.umsdk:common:9.7.5'
implementation 'com.umeng.umsdk:asms:1.8.3'
implementation "com.umeng.umsdk:apm:1.9.8"
//Bugly
implementation 'com.tencent.bugly:crashreport:latest.release'
//xcrash
implementation 'com.iqiyi.xcrash:xcrash-android-lib:3.0.0'
热修复(Tinker/AndFix/Robust/dexposed)
参考文档 https://www.cnblogs.com/Android-Alvin/p/13651832.html
参考文档 https://blog.csdn.net/maguifen2012/article/details/128654343
implementation "com.android.support:multidex:1.0.3" // 多dex配置
//腾讯Tinker https://github.com/Tencent/tinker
implementation 'com.tencent.bugly:crashreport_upgrade:1.6.1'
implementation 'com.tencent.bugly:nativecrashreport:3.9.2'
implementation 'com.tencent.tinker:tinker-android-lib:1.9.15'
//美团robust https://github.com/Meituan-Dianping/Robust
implementation 'com.meituan.robust:robust:0.4.99'
//阿里AndFix https://github.com/alibaba/AndFix
implementation 'com.alipay.euler:andfix:0.5.0@aar'
//阿里dexposed https://github.com/alibaba/dexposed
implementation 'com.taobao.android:dexposed:0.1.1@aar'
//大众点评Nuwa https://github.com/jasonross/Nuwa
implementation 'cn.jiajixin.nuwa:nuwa:1.0.0'
//阿里Sophix https://blog.csdn.net/dengpeng_/article/details/77365880
implementation 'com.aliyun.ams:alicloud-android-hotfix:3.1.0
插件框架/组件化(replugin/Shadow/Qigsaw/atlas)
//replugin 奇虎360 //https://github.com/Qihoo360/RePlugin
//使用 https://blog.csdn.net/h5630/article/details/130931745
implementation "com.qihoo360.replugin:replugin-host-lib:3.0.0"
//Shadow 腾讯 https://github.com/Tencent/Shadow
//使用 https://www.jianshu.com/p/8f940274134e
implementation "com.tencent.shadow.core:common:$shadow_version"//common
implementation "com.tencent.shadow.core:loader:$shadow_version"//包含core:runtime和core:load-parameters
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.5.32"
implementation "com.tencent.shadow.core:activity-container:$shadow_version"//承载插件的容器,runtime
implementation "com.tencent.shadow.core:manager:$shadow_version"//数据库管理插件的
//爱奇艺 Qigsaw https://gitee.com/mirrors/Qigsaw
implementation "com.iqiyi.android.qigsaw:splitcore:1.4.1-hotfix01"
//VirtualXposed https://gitcode.com/gh_mirrors/vi/VirtualXposed
//镜像 https://gitcode.com/gh_mirrors/vi/VirtualXposed
//https://virtualxposed.com/download/
//使用 https://blog.csdn.net/gitblog_01153/article/details/141016077
//atlas 淘宝 https://github.com/alibaba/atlas
//使用 https://zhuanlan.zhihu.com/p/586114735 //https://github.com/alibaba/atlas/tree/master/atlas-docs
implementation('com.taobao.android:atlas_core:5.0.0@aar') {
transitive = true
}
implementation 'com.taobao.android:atlasupdate:1.0.8@aar'
数据持久化(room/DataStore)
//数据库1 room
//https://developer.android.google.cn/training/data-storage/room
def room_version = "2.6.1"
implementation "androidx.room:room-runtime:$room_version"
// If this project uses any Kotlin source, use Kotlin Symbol Processing (KSP)
// See KSP Quickstart to add KSP to your build
ksp "androidx.room:room-compiler:$room_version"
// If this project only uses Java source, use the Java annotationProcessor
// No additional plugins are necessary
annotationProcessor "androidx.room:room-compiler:$room_version"
implementation "androidx.room:room-rxjava2:$room_version" // optional - RxJava2 support for Room
implementation "androidx.room:room-rxjava3:$room_version" // optional - RxJava3 support for Room
// optional - Guava support for Room, including Optional and ListenableFuture
implementation "androidx.room:room-guava:$room_version"
testImplementation "androidx.room:room-testing:$room_version"// optional - Test helpers
implementation "androidx.room:room-paging:$room_version" // optional - Paging 3 Integration
//数据库2 greenDAO 地址 https://gitcode.com/gh_mirrors/gr/greenDAO
implementation 'org.greenrobot:greendao:3.3.0'
//数据库3 LitePal 地址 https://gitcode.com/gh_mirrors/lit/LitePal
implementation 'org.litepal.guolindev:core:3.2.3'
//数据库4 sugar 地址 https://gitcode.com/gh_mirrors/sug/sugar
implementation 'com.github.satyan:sugar:1.5'
//DataStore https://developer.android.google.cn/topic/libraries/architecture/datastore?hl=zh-cn#groovy
//Preferences DataStore 和 Proto DataStore
// Preferences DataStore (SharedPreferences like APIs)
implementation "androidx.datastore:datastore-preferences:1.1.2"
implementation "androidx.datastore:datastore-preferences-rxjava2:1.1.2" // optional - RxJava2 support
implementation "androidx.datastore:datastore-preferences-rxjava3:1.1.2" // optional - RxJava3 support
implementation "androidx.datastore:datastore-preferences-core:1.1.2"
// Typed DataStore (Typed API surface, such as Proto)
implementation "androidx.datastore:datastore:1.1.2"
implementation "androidx.datastore:datastore-rxjava2:1.1.2" // optional - RxJava2 support
implementation "androidx.datastore:datastore-rxjava3:1.1.2" // optional - RxJava3 support
implementation "androidx.datastore:datastore-core:1.1.2"
事件消息(EventBus/otto/mqtt)
//EventBus (应用内通信) 地址 https://gitcode.com/gh_mirrors/ev/EventBus
implementation 'org.greenrobot:eventbus:3.3.1'
//otto 地址 https://square.github.io/otto/
implementation 'com.squareup:otto:1.3.8'
//mqtt(服务端和客户端间的消息)
implementation 'org.eclipse.paho:org.eclipse.paho.client.mqttv3:1.1.0'
implementation 'org.eclipse.paho:org.eclipse.paho.android.service:1.1.1'
图表组件(MPAndroidChart/HelloCharts/WilliamChart)
// 图表组件(MPAndroidChart官方版本) 折线图、柱状图、饼图、散点图、雷达图等
//https://github.com/PhilJay/MPAndroidChart
implementation 'com.github.PhilJay:MPAndroidChart:v3.1.0'
// 图表组件(MPAndroidChart mysugr版本)
implementation 'com.mysugr.MPAndroidChart:MPAndroidChart:3.1.0-mysugr-1'
//HelloCharts 地址 https://gitcode.com/gh_mirrors/he/hellocharts-android
implementation 'com.github.lecho:hellocharts-android:v1.5.8'
//WilliamChart 地址https://gitee.com/HarmonyOS-tpc/williamchart
// Charts
implementation 'io.openharmony.tpc.thirdlib:williamchart:1.0.0'
// Tooltips
implementation 'io.openharmony.tpc.thirdlib:tooltip-slider:1.0.0'
implementation 'io.openharmony.tpc.thirdlib:tooltip-points:1.0.0'
二维码/条码(zxing/hms/mlkit/opencv)
//zxing二维码的扫描和生成
implementation 'com.google.zxing:core:3.5.3'
//华为 二维码 支持多种码制(QR 码、条形码等)
implementation 'com.huawei.hms:scan:2.2.0.300'
//Google 提供的二维码扫描库,基于机器学习
implementation 'com.google.mlkit:barcode-scanning:17.2.0'
//基于 ZXing 的封装库,简化了相机和界面的集成
implementation 'com.journeyapps:barcodescanner:4.3.0'
//开源的二维码和条形码扫描库
implementation 'me.dm7.barcodescanner:zbar:1.9.13'
//OpenCV 的二维码检测功能
implementation 'org.opencv:opencv-android:4.5.5'
地图定位(高德/百度/腾讯/google)
//高德 https://lbs.amap.com/api/android-sdk/sdk-code-samples
implementation 'com.amap.api:location:latest.integration'//定位
implementation 'com.amap.api:map2d:latest.integration'//2D地图
//高德 其他
implementation 'com.amap.api:3dmap-location-search:latest.integration'//3D地图
implementation 'navi-3dmap-location-search:latest.integration'//导航
implementation 'com.amap.api:search:latest.integration'//搜索
//百度 https://lbsyun.baidu.com/faq/api?title=android-locsdk/guide/create-project/android-studio
implementation 'com.baidu.lbsyun:BaiduMapSDK_Location:9.6.4'//基础定位组件
implementation 'com.baidu.lbsyun:BaiduMapSDK_Map:7.6.3'//地图组件
//百度 其他
implementation 'com.baidu.lbsyun:BaiduMapSDK_Search:7.6.3'//检索组件
implementation 'com.baidu.lbsyun:BaiduMapSDK_Util:7.6.3'//工具组件
implementation 'com.baidu.lbsyun:BaiduMapSDK_Map-BWNavi:7.6.3'//步骑行组件
implementation 'com.baidu.lbsyun:BaiduMapSDK_Location_All:9.6.4'//全量定位组件
implementation 'com.baidu.lbsyun:BaiduMapSDK_Map-Navi:7.6.3'//驾车导航组件
implementation 'com.baidu.lbsyun:BaiduMapSDK_Map-AllNavi:7.6.3'//驾车导航+步骑行导航
implementation 'com.baidu.lbsyun:NaviTts:3.2.13'//TTS组件
implementation 'com.baidu.lbsyun:BaiduMapSDK_Panorama:2.9.0'//全景组件
implementation 'com.baidu.lbsyun:BaiduMapSDK_RealTimeBus:7.6.3'//实时公交组件
//腾讯 https://lbs.qq.com/mobile/androidMapSDK/developerGuide/configuration
implementation 'com.tencent.map.geolocation:TencentLocationSdk-openplatform:8.7.5.1'// 定位
implementation 'com.tencent.map:tencent-map-vector-sdk:5.8.0'// 地图
//腾讯 其他
implementation "com.tencent.map:tencent-map-nav-sdk-core:${sdk_version}"// 导航核心库
implementation "com.tencent.openmap:foundation:${sdk_version}"// 基础依赖
implementation "com.tencent.map:tencent-map-nav-sdk-tts:${sdk_version}"// 导航内置TTS,可选
//google 定位 https://developers.google.cn/maps/documentation/places/android-sdk/config?hl=zh-cn
implementation 'com.google.android.libraries.places:places:3.3.0'
implementation 'com.google.android.gms:play-services-location:21.0.1'//定位
//google 地图 https://developers.google.cn/maps/documentation/android-sdk/config?hl=zh-cn
implementation "com.google.android.gms:play-services-maps:19.0.0"//地图
//其他 https://developers.google.cn/maps/documentation?hl=zh-cn
文件解析(json/HTML/xml/csv)
json解析详细参考链接https://www.jianshu.com/p/87626c9af5e5
//json解析
//google的gson (可以解析json和xml)
implementation 'com.google.code.gson:gson:2.12.1'
//alibaba的 fastjson2
implementation 'com.alibaba.fastjson2:fastjson2:2.0.54.android8'
//HTML 解析 jsoup https://gitcode.com/gh_mirrors/js/jsoup
implementation 'org.jsoup:jsoup:1.18.3'
//xml解析
//fasterxml
implementation 'com.fasterxml.jackson.dataformat:jackson-dataformat-xml:2.18.2'
//simple-xml
implementation 'org.simpleframework:simple-xml:2.7.1'
// dom4j
implementation 'org.dom4j:dom4j:2.1.3'
//jdom
implementation 'org.jdom:jdom2:2.0.6'
//csv解析和生成
//opencsv https://opencsv.sourceforge.net/
implementation 'com.opencsv:opencsv:5.10'
//Apache Commons CSV https://commons.apache.org/proper/commons-csv/
implementation 'org.apache.commons:commons-csv:1.10.0'
//Super CSV https://super-csv.github.io/super-csv/
implementation 'net.sf.supercsv:super-csv:2.4.0'
//Flatpack https://flatpack.sourceforge.net/
implementation 'net.sf.flatpack:flatpack:3.4.3'
//Jackson CSV
implementation 'com.fasterxml.jackson.dataformat:jackson-dataformat-csv:2.15.2'
//uniVocity-parsers
implementation 'com.univocity:univocity-parsers:2.9.1'
对象存储服务(OSS/OBS/COS/MinIO)
对象存储服务 大规模非结构化数据存储(比如日志文件,图片文件,压缩包等)
//oss 阿里云 阿里云提供的对象存储服务
//文档 https://help.aliyun.com/zh/oss/developer-reference/installation-1
implementation 'com.aliyun.dpa:oss-android-sdk:2.9.21'
//Huawei OBS (Object Storage Service) 华为云提供的对象存储服务
//文档 https://support.huaweicloud.com/sdk-android-devg-obs/obs_26_0105.html
implementation 'com.huaweicloud:esdk-obs-android:3.24.3'
//Tencent COS (Cloud Object Storage) 腾讯云提供的对象存储服务
//文档 https://cloud.tencent.com/document/product/436/12159
implementation 'com.qcloud.cos:cos-android:5.9.+'//标准版 SDK
implementation 'com.qcloud.cos:cos-android-lite:5.9.+'//精简版 SDK
//MinIO 高性能的开源对象存储服务,兼容 Amazon S3 API
implementation 'io.minio:minio:8.5.7'
//AWS S3 (Amazon Simple Storage Service) 亚马逊提供的对象存储服务
implementation 'com.amazonaws:aws-android-sdk-s3:2.72.0'
//Google Cloud Storage 谷歌云提供的对象存储服务
implementation 'com.google.cloud:google-cloud-storage:2.20.0'
WebView框架
//https://github.com/lzyzsd/JsBridge
implementation 'com.github.lzyzsd:jsbridge:1.0.4'
//https://gitee.com/Tencent/vassonic
//https://www.github-zh.com/projects/98978879-VasSonic
//https://gitcode.com/gh_mirrors/ag/AgentWeb/
implementation 'io.github.justson:agentweb-core:v5.1.1-androidx'
implementation 'io.github.justson:agentweb-filechooser:v5.1.1-androidx' // (可选)
implementation 'com.github.Justson:Downloader:v5.0.4-androidx' // (可选)
//https://github.com/JackyAndroid/AndroidChromium
//https://gitcode.com/gh_mirrors/an/AndroidChromium
//https://github.com/cprcrack/VideoEnabledWebView
//https://gitcode.com/gh_mirrors/vi/VideoEnabledWebView
//https://github.com/RameshBhupathi/CollapsingToolbar-With-Webview
//https://gitcode.com/gh_mirrors/co/CollapsingToolbar-With-Webview
//https://github.com/wendux/DSBridge-Android
implementation 'com.github.wendux:DSBridge-Android:3.0-SNAPSHOT'
//support the x5 browser core of Tencent
implementation 'com.github.wendux:DSBridge-Android:x5-3.0-SNAPSHOT'
//https://github.com/slm/WebViewNativeBridge
implementation 'com.github.slmyldz:WebViewNativeBridge:1.0'
//https://github.com/AhmadNemati/ClickableWebView
implementation 'com.ahmadnemati.clickablewebview:clickablewebview:1.1.2' //jcenter()
应用启动
//https://developer.android.google.cn/topic/libraries/app-startup?hl=zh-cn
implementation "androidx.startup:startup-runtime:1.1.1"
2.图片/动画/视频等
图片加载/查看(Glide/Picasso/fresco/coil)
//Glide
implementation('com.github.bumptech.glide:glide:4.16.0')
kapt 'com.github.bumptech.glide:compiler:4.16.0'
//glide-transformations为Glide提供了各种图像转
implementation 'jp.wasabeef:glide-transformations:4.3.0'
// 如果您想使用 GPU 滤镜
implementation 'jp.co.cyberagent.android:gpuimage:2.1.0'
//Picasso
implementation 'com.squareup.picasso:picasso:2.8'
//picasso-transformations 为Picasso提供了各种图像转换
implementation 'jp.wasabeef:picasso-transformations:2.4.0'
// fresco 核心库;必须依赖
implementation 'com.facebook.fresco:fresco:3.6.0'
// 以下为fresco扩展功能,可根据业务需要选择是否依赖
// 支持 GIF 动图
implementation 'com.facebook.fresco:animated-gif:3.6.0'
// 在 API < 14 上的机器支持 WebP
implementation 'com.facebook.fresco:animated-base-support:1.3.0'
// 支持 WebP 静态图
implementation 'com.facebook.fresco:webpsupport:3.6.0'
// 支持 WebP 动图
implementation 'com.facebook.fresco:animated-webp:3.6.0'
//fresco-processors
implementation 'jp.wasabeef:fresco-processors:2.2.1'
//coil 由 Kotlin 协程支持的 Android 图像加载
//地址 https://coil-kt.github.io/coil ; 项目地址 https://github.com/coil-kt/coil
implementation 'io.coil-kt:coil:2.7.0'
图片缩放/裁剪/压缩/模糊(PhotoView/CircleImageView/Compressor/uCrop/Luban)
//RoundedImageView//PhotoView 触摸手势进行缩放 薄荷,网易新闻 https://gitcode.com/gh_mirrors/ph/PhotoView
implementation 'com.github.chrisbanes:PhotoView:2.3.0'
//CircleImageView 圆角ImageView 薄荷
implementation 'de.hdodenhof:circleimageview:3.1.0'
//uCrop 图片裁剪框架 https://www.jianshu.com/p/2c195c87781b
implementation 'com.github.yalantis:ucrop:2.2.4' //-轻巧的通用解决方案。
implementation 'com.github.yalantis:ucrop:2.2.4-native' //- 获得本机代码的功能以保持图像质量
//android-crop 地址 https://github.com/jdamcd/android-crop
implementation 'com.soundcloud.android:android-crop:1.0.1@aar'
//Luban 图片压缩框架 https://gitcode.com/gh_mirrors/lu/Luban
implementation 'top.zibin:Luban:1.1.8'
//Compressor android图像压缩库
implementation 'id.zelory:compressor:3.0.1'
//Android-gpuimage 图像滤镜框架 快手 https://gitcode.com/gh_mirrors/an/android-gpuimage
implementation 'jp.co.cyberagent.android:gpuimage:2.x.x' //2.1.0
//cropper 地址 https://github.com/edmodo/cropper/wiki
implementation 'com.edmodo:cropper:2.0.0'
//Android-Image-Cropper 地址 https://github.com/ArthurHub/Android-Image-Cropper
implementation 'com.theartofdev.edmodo:android-image-cropper:2.8.+'
//https://gitcode.com/gh_mirrors/and/Android-Image-Cropper
implementation("com.vanniktech:android-image-cropper:4.6.0")
//RoundedImageView 地址 https://gitcode.com/angcyo/RoundedImageView
implementation 'com.makeramen:roundedimageview:2.3.0'
//selectableroundedimageview 地址 https://github.com/pungrue26/SelectableRoundedImageView
implementation 'com.joooonho:selectableroundedimageview:1.0.1'
//android-gif-drawable 地址 https://gitcode.com/angcyo/android-gif-drawable
implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.29'
//blurry 模糊处理库 https://github.com/wasabeef/Blurry https://gitcode.com/gh_mirrors/bl/Blurry
implementation 'jp.wasabeef:blurry:4.0.1'
//blurkit 模糊效果 https://github.com/CameraKit/blurkit-android https://gitcode.com/gh_mirrors/bl/blurkit-android
implementation 'io.alterac.blurkit:blurkit:1.1.0'
//BlurView 模糊视图 https://github.com/Dimezis/BlurView https://gitcode.com/gh_mirrors/bl/BlurView
implementation 'com.github.Dimezis:BlurView:version-2.0.5'
//ImageBlurring 图片模糊 https://github.com/qiujuer/ImageBlurring
//镜像地址 https://gitcode.com/gh_mirrors/im/ImageBlurring
//Genius-Android https://github.com/qiujuer/Genius-Android https://gitcode.com/gh_mirrors/ge/Genius-Android
implementation 'net.qiujuer.genius:ui:2.2.0'
implementation 'net.qiujuer.genius:res:2.2.0'
implementation 'net.qiujuer.genius:graphics:2.2.0'
//实时模糊效果视图 https://gitcode.com/gh_mirrors/re/RealtimeBlurView
implementation 'com.github.mmin18:realtimeblurview:1.2.1'
//PhotoCropper android大图片裁剪
//PhotoCropper 地址 https://gitcode.com/angcyo/PhotoCropper
//android-stackblur Android堆叠模糊 https://github.com/kikoso/android-stackblur
//镜像地址 https://gitcode.com/gh_mirrors/an/android-stackblur
图片选择器(PictureSelector/boxing/BGAPhotoPicker/EasyPhotos/Matisse)
相关效果参考 https://www.jianshu.com/p/1759364ca8b6
//PictureSelector 图片选择器的图片选择器库
implementation 'io.github.lucksiege:pictureselector:v3.11.3'
implementation 'com.github.LuckSiege.PictureSelector:picture_library:v2.6.0'
//哔哩哔哩boxing 地址https://gitcode.com/gh_mirrors/bo/boxing
implementation 'com.bilibili:boxing:1.0.4'
//EasyPhotos 图片选择器库 地址 https://gitcode.com/gh_mirrors/eas/EasyPhotos
implementation 'io.github.joker-fu:EasyPhotos:andX-2.5.7'
//Matisse 知乎开源图片选择器 地址 https://gitcode.com/gh_mirrors/mati/Matisse
implementation 'com.zhihu.android:matisse:0.5.3-beta3'
//BGAPhotoPicker Android 地址 https://github.com/bingoogolapple/BGAPhotoPicker-Android
//镜像地址 https://gitee.com/ren_junjie/BGAPhotoPicker-Android
implementation 'com.github.bingoogolapple:BGABaseAdapter-Android:2.0.1'
//FilePicker https://github.com/rosuH/AndroidFilePicker
//镜像地址https://gitcode.com/gh_mirrors/an/AndroidFilePicker
implementation 'me.rosuh:AndroidFilePicker:$latest_version' //0.6.2
//https://gitee.com/luoxianli/Android-FilePicker
implementation 'com.droidninja:filepicker:2.2.4'
//MultiImageSelector 地址 https://gitcode.com/gh_mirrors/mu/MultiImageSelector
implementation 'com.github.lovetuzitong:MultiImageSelector:1.2'
//TakePhoto 地址 https://github.com/crazycodeboy/TakePhoto
implementation 'com.jph.takephoto:takephoto_library:4.1.0'
//RxGalleryFinal 地址 https://github.com/FinalTeam/RxGalleryFinal
implementation 'cn.finalteam.rxgalleryfinal:library:1.0.9'
轮播图 banner/viewpager/StereoView/Roll3DImageView
//banner 轮播容器 https://gitee.com/ymwcc/banner
implementation 'com.youth.banner:banner:2.0.11'
//banner
//implementation 'com.youth.banner:banner:1.4.10' https://gitcode.com/gh_mirrors/ba/banner
implementation 'io.github.youth5201314:banner:2.2.3'
//MZBannerView https://github.com/pinguo-zhouwei/MZBannerView https://gitee.com/huapeng222/MZBannerView
implementation 'com.github.pinguo-zhouwei:MZBannerView:v2.0.2'
//ViewPagerHelper 导航栏轮播图 https://github.com/LillteZheng/ViewPagerHelper https://gitee.com/Dinges/ViewPagerHelper
implementation 'com.github.LillteZheng.ViewPagerHelper:viewpagerlibx:v2.9'
//BGABanner 引导界面滑动导航 https://github.com/91song/Android-BGABanner https://gitee.com/bx601880762/BGABanner-Android
implementation 'cn.bingoogolapple:bga-banner:2.1.7'
//UltraViewPager ViewPager扩展 https://gitcode.com/gh_mirrors/ul/UltraViewPager https://gitee.com/alibaba/UltraViewPager
implementation 'com.alibaba.android:ultraviewpager:1.0.7.8'
//StereoView 地址 ://github.com/ImmortalZ/StereoView
//https://blog.csdn.net/Mr_immortalZ/article/details/51918560
//Roll3DImageView 3D翻转的效果
//https://github.com/zhangyuChen1991/Roll3DImageView https://gitcode.com/gh_mirrors/ro/Roll3DImageView
//https://github.com/nanyuweiyi/roll3dview
implementation 'com.github.nanyuweiyi:roll3dview:1.0.0'
//MagicViewPager ViewPager炫酷切换 地址 https://gitcode.com/gh_mirrors/ma/MagicViewPager
implementation 'com.zhy:magic-viewpager:1.0.1'
//https://gitee.com/cxzwan/BulletinView https://github.com/Bakumon/BulletinView
implementation 'me.bakumon:bulletinview:1.0.0'
动画(AndroidViewAnimations/Transitions-Everywhere/Material-Animations)
//Material-Animations https://github.com/lgvalle/Material-Animations
// https://gitcode.com/angcyo/Material-Animations https://www.jianshu.com/p/69d48f313dc4
//androidanimations https://gitcode.com/gh_mirrors/an/AndroidViewAnimations
implementation 'com.daimajia.androidanimations:library:2.4@aar'
//android-animations-kotlin https://gitcode.com/gh_mirrors/an/android-animations-kotlin
implementation 'com.github.gayanvoice:android-animations-kotlin:1.0.1'
// Transitions-Everywhere 转场动画 地址 https://gitcode.com/gh_mirrors/tr/Transitions-Everywhere
implementation "com.andkulikov:transitionseverywhere:2.1.0"
骨架屏基础占位 (skeleton/ShimmerRecyclerView/spruce-android)
//https://gitcode.com/gh_mirrors/skeleton3/Skeleton
implementation 'com.github.rasoulmiri:Skeleton:v1.1.4'
//https://gitcode.com/gh_mirrors/sk/Skeleton-Bones/
implementation 'com.github.EudyContreras:Skeleton-Bones:版本号'
//skeleton https://blog.csdn.net/Ym_quiet/article/details/133563048
implementation "com.gitee.ym521:skeleton:1.3.0"
//ShimmerRecyclerView https://gitcode.com/gh_mirrors/sh/ShimmerRecyclerView https://github.com/sharish/ShimmerRecyclerView
implementation 'com.github.sharish:ShimmerRecyclerView:v1.3'
// Spruce-android Spruce Android 动画库 https://gitcode.com/gh_mirrors/sp/spruce-android
implementation 'com.willowtreeapps.spruce:spruce-android:1.1.0'
视频播放(ijkplayer/JZVideo/GSYVideoPlayer/ExoPlayer/PLDroidPlayer)
//Ijkplayer Bilibili发布视频播放器 https://gitcode.com/gh_mirrors/ij/ijkplayer
implementation 'tv.danmaku.ijk.media:ijkplayer-java:0.8.8'
implementation 'tv.danmaku.ijk.media:ijkplayer-armv7a:0.8.8'
//JZVideo 饺子播放器 https://gitcode.com/gh_mirrors/jz/JZVideo
implementation 'cn.jzvd:jiaozivideoplayer:7.7.0'
//GSYVideoPlayer 基于IJKPlayer https://github.com/yebook/GSYVideoPlayer https://gitee.com/yanglei324/GSYVideoPlayer/
implementation 'com.shuyu:GSYVideoPlayer:7.0.2'
//https://gitcode.com/ZuoYueLiang/GSYVideoPlayer
implementation 'com.github.CarGuo.GSYVideoPlayer:gsyvideoplayer:v10.0.0'
//ExoPlayer https://gitcode.com/gh_mirrors/ex/ExoPlayer
implementation 'com.google.android.exoplayer:exoplayer:r2.X.X'
implementation 'com.google.android.exoplayer:exoplayer:2.10.7'
//PLDroidPlayer https://github.com/pili-engineering/PLDroidPlayer https://github.com/pili-engineering/QPlayer2-Android
//七牛官方文档 https://developer.qiniu.com/pili/1210/the-android-client-sdk
implementation("com.qiniu:qplayer2-core:1.5.0")
//MD360Player4Android https://gitcode.com/gh_mirrors/md/MD360Player4Android
implementation 'com.github.ashqal:MD360Player4Android:2.5.0'
//DanmakuFlameMaster https://gitcode.com/gh_mirrors/da/DanmakuFlameMaster
implementation 'com.github.ctiao:DanmakuFlameMaster:0.9.25'
implementation 'com.github.ctiao:ndkbitmap-armv7a:0.9.21'
//https://gitcode.com/gh_mirrors/pr/PreviewSeekBar
// 基础实现,包含标准SeekBar
implementation 'com.github.rubensousa:previewseekbar:3.1.1'
// 包含时间条(TimeBar)的Media3扩展。
implementation 'com.github.rubensousa:previewseekbar-media3:1.1.1.0
Loading动画(SpinKit/AVLoadingIndicatorView/Loading/LoadingDrawable)
参考链接 https://blog.csdn.net/urDFmQCUL2/article/details/78839737
//Android-SpinKit 地址 https://gitcode.com/gh_mirrors/an/Android-SpinKit http://tobiasahlin.com/spinkit
implementation 'com.github.ybq:Android-SpinKit:1.2.0'
//AVLoadingIndicatorView
// 安卓 https://github.com/HarlonWang/AVLoadingIndicatorView 苹果 https://github.com/ninjaprox/NVActivityIndicatorView
implementation 'com.wang.avi:library:2.1.3'
//Loading 地址 https://github.com/yankai-victor/Loading
implementation 'com.victor:lib:1.0.4'
//LoadingDrawable https://gitee.com/hailongqiu/LoadingDrawable
//https://github.com/dinuscxj/LoadingDrawable
3.弹框/列表/样式/字体/其他UI等
Dialog弹框(FlycoDialog/material-dialogs/Android-AlertView)
//FlycoDialog 置常用Dialog https://gitcode.com/gh_mirrors/fl/FlycoDialog_Master
implementation 'com.flyco.dialog:FlycoDialog_Lib:1.3.2@aar'
//material-dialogs 可扩展的对话框 https://gitcode.com/gh_mirrors/ma/material-dialogs
implementation 'com.afollestad.material-dialogs:core:3.3.0'
//Android-AlertView 仿iOS的AlertViewController https://github.com/saiwu-bigkoo/Android-AlertView
implementation 'com.bigkoo:alertview:1.0.3'
RecyclerView列表刷新(SmartRefreshLayout/MultipleStatusView/SwipeRecyclerView/ShimmerRecyclerView)
//https://gitcode.com/gh_mirrors/smar/SmartRefreshLayout
implementation 'io.github.scwang90:refresh-layout-kernel:2.0.6' //核心必须依赖
implementation 'io.github.scwang90:refresh-header-classics:2.0.6' //经典刷新头
//https://github.com/scwang90/SmartRefreshHorizontal
implementation 'com.scwang.smart:refresh-layout-horizontal:2.0.0'
implementation 'com.scwang.smartrefresh:SmartRefreshLayout:1.1.2'
implementation 'com.scwang.smartrefresh:SmartRefreshHeader:1.1.2'//没特殊Header,可不加
//MultipleStatusView https://github.com/qyxxjd/MultipleStatusView 加载状态的
implementation 'com.classic.common:multiple-status-view:1.7'
//SwipeRecyclerView 侧滑,Item拖拽,滑动删除,加载更多 https://github.com/yanzhenjie/SwipeRecyclerView
implementation 'com.yanzhenjie.recyclerview:x:1.3.2'
//ShimmerRecyclerView https://github.com/sharish/ShimmerRecyclerView
implementation 'com.github.sharish:ShimmerRecyclerView:v1.3'
//https://github.com/scwang90/MultiWaveHeader
implementation 'com.scwang.wave:MultiWaveHeader:1.0.0-andx'
//swiperefreshlayout https://developer.android.google.cn/jetpack/androidx/releases/swiperefreshlayout
implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.1.0"
//android-Ultra-Pull-To-Refresh https://github.com/liaohuqiu/android-Ultra-Pull-To-Refresh
implementation 'in.srain.cube:ultra-ptr:1.0.11'
//https://github.com/lcodecorex/TwinklingRefreshLayout
implementation 'com.lcodecorex:tkrefreshlayout:1.0.7'
//https://github.com/android-cjj/BeautifulRefreshLayout
//https://gitee.com/20999/BeautifulRefreshLayout
导航栏
//https://github.com/gyf-dev/ImmersionBar
// 基础依赖包,必须要依赖
implementation 'com.geyifeng.immersionbar:immersionbar:3.2.2'
// kotlin扩展(可选)
implementation 'com.geyifeng.immersionbar:immersionbar-ktx:3.2.2'
implementation 'io.github.zzhhz:UltimateBarX:0.0.1'
//https://github.com/qingshuo/EasyNavigation
implementation 'com.github.Vincent7Wong:EasyNavigation:2.0.5'
换肤/主题样式
//https://github.com/ximsfei/Android-skin-support
implementation 'skin.support:skin-support:4.0.5' // skin-support
implementation 'skin.support:skin-support-appcompat:4.0.5' // skin-support 基础控件支持
implementation 'skin.support:skin-support-design:4.0.5' // skin-support-design material design 控件支持[可选]
implementation 'skin.support:skin-support-cardview:4.0.5' // skin-support-cardview CardView 控件支持[可选]
implementation 'skin.support:skin-support-constraint-layout:4.0.5' // skin-support-constraint-layout ConstraintLayout 控件支持[可选]
//https://github.com/orientsec/Skinnable
implementation 'com.github.Orientsec.Skinnable:SkinLibrary:1.0.0'
//https://github.com/Bilibili/MagicaSakura
implementation 'com.bilibili:magicasakura:0.1.9-beta3@aar'
//https://github.com/garretyoder/Colorful
implementation 'com.github.garretyoder:Colorful:2.3.4'
//https://github.com/52inc/Scoops 动态改变应用主题
implementation 'com.52inc:scoops:1.0.0'
//https://github.com/zzz40500/ThemeDemo
implementation 'com.github.zzz40500:ThemeDemo:0.1'
//https://github.com/burgessjp/ThemeSkinning
implementation 'com.solid.skin:skinlibrary:latestVersion'
//MD风格的夜间屏幕Android 应用 https://github.com/fython/Blackbulb
//https://github.com/wutongke/AndroidSkinAnimator
//https://github.com/zhangke3016/ChangeMode
//https://github.com/qqliu10u/QSkinLoader
字体
//在应用中使用图标字体或矢量 https://github.com/mikepenz/Android-Iconics https://gitcode.com/gh_mirrors/an/Android-Iconics
implementation "com.mikepenz:iconics-core:${latestAndroidIconicsRelease}"
//这会添加所有UI视图组件(如IconicsButton, IconicsImageView等)
implementation "com.mikepenz:iconics-views:${latestAndroidIconicsRelease}"
implementation 'com.mikepenz:google-material-typeface:4.0.0.2-kotlin@aar'
implementation 'com.mikepenz:google-material-typeface-{outlined|rounded|sharp}:4.0.0.1-kotlin@aar'
implementation 'com.mikepenz:material-design-iconic-typeface:2.2.0.8-kotlin@aar'
implementation 'com.mikepenz:fontawesome-typeface:5.9.0.2-kotlin@aar'
//Calligraphy自定义字体 https://gitcode.com/gh_mirrors/cal/Calligraphy
implementation 'io.github.inflationx:calligraphy3:3.1.1'
implementation 'io.github.inflationx:viewpump:2.0.3'
//https://gitcode.com/gh_mirrors/ty/TypefaceHelper
implementation 'com.drivemode:TypefaceHelper:1.2.0@aar'
//https://gitcode.com/gh_mirrors/fo/FontsManager
implementation 'com.github.GcsSloop:FontsManager:v1.0.0'
其他Ui
参考文档 https://hndeveloper.github.io/2017/github-android-ui.html
参考链接
https://hndeveloper.github.io/2017/github-android-ui.html
https://gitee.com/yinzeyu/lib/blob/master/README.md
https://www.jianshu.com/p/756b5f95b811
https://www.jianshu.com/p/0b4fb628bcf4
https://blog.csdn.net/duoduo_11011/article/details/77581409
https://www.jianshu.com/p/7628fccb0e19
https://www.jianshu.com/p/9fcf3dcaa940










网友评论