这里总结了一些项目经常需要用到的依赖,以前我都是记在一个txt文件上 觉得太麻烦(不同电脑) 就打算把它转移到博客上 随时可以看
这个版本依赖里基本上都是28的
TabLayout
implementation 'com.android.support:design:28.0.0'//tablayout横着写也就是普通的
implementation 'q.rorbin:VerticalTabLayout:1.2.5'//tablayout竖着写的
implementation 'com.flyco.tablayout:FlycoTabLayout_Lib:2.0.2@aar'//一个可以实现带图片的多功能tablayout
Okhttp
implementation "com.squareup.okhttp3:okhttp:3.11.0"//网络请求Okhttp
implementation "com.squareup.okhttp3:logging-interceptor:3.11.0"
Retrofit
//网络请求Retrofit与所用Gson
implementation 'com.squareup.retrofit2:retrofit:2.5.0'
implementation 'com.squareup.retrofit2:converter-gson:2.5.0'
Rxjava:三个都需要 配合上边的Retrofit使用更佳
//Rxjava
implementation 'io.reactivex.rxjava2:rxjava:2.2.6'
implementation 'io.reactivex:rxandroid:1.1.0'
implementation 'com.squareup.retrofit2:adapter-rxjava:2.4.0'
Gson
implementation 'com.google.code.gson:gson:2.8.1'//Gson解析
RecyclerView
//现在studio已经自带了该功能,可以在xml的Design界面点击下载,然后就自动写好了
implementation 'androidx.recyclerview:recyclerview:1.0.0'
Glide
implementation 'com.github.bumptech.glide:glide:4.8.0'//Glide解析图片
annotationProcessor 'com.github.bumptech.glide:compiler:4.8.0'
轮播图:感觉banner更方便
implementation 'com.jude:rollviewpager:1.4.5'//viewpager轮播图
implementation 'com.youth.banner:banner:1.4.10'//banner轮播图
ORM数据库:
implementation 'com.j256.ormlite:ormlite-android:5.0'//ORM数据库
GreenDao 数据库
implementation 'org.greenrobot:greendao:3.2.2'//GreenDao数据库
支持无限循环的广告栏控件
implementation 'com.recker.flybanner:flybanner:1.3'
photoView图片放大缩小
implementation 'com.github.chrisbanes.photoview:library:+' //photoView图片放大缩小
implementation 'com.bm.photoview:library:1.4.1'//圆角矩形 没试过
注解框架的依赖
//注解框架
implementation 'com.jakewharton:butterknife:8.8.1'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'
下拉刷新依赖+下拉刷新使用了特殊的Header
//下拉刷新依赖
implementation 'com.scwang.smartrefresh:SmartRefreshLayout:1.1.0-alpha-12'
//下拉刷新使用了特殊的Header
implementation 'com.scwang.smartrefresh:SmartRefreshHeader:1.1.0-alpha-12'
专业处理方法过多时报错的问题
//专业处理方法过多时报错的问题
implementation 'com.android.support:multidex:1.0.3'
选择图片的依赖(相册相机在一起)
//选择图片
implementation 'com.github.lovetuzitong:MultiImageSelector:1.2'
//照片 图片选择框架
implementation 'com.github.LuckSiege.PictureSelector:picture_library:v2.2.3'
安卓权限
//安卓权限
implementation 'pub.devrel:easypermissions:1.3.0'
//动态权限获取
implementation 'com.github.tbruyelle:rxpermissions:0.11'
//rxjava2框架導入
implementation 'io.reactivex.rxjava2:rxjava:2.2.10'
implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'
一种低成本的安卓屏幕适应解决方案(今日头条屏幕适配方案终极版)。
//一种低成本的安卓屏幕适应解决方案(今日头条屏幕适配方案终极版,一个极低成本的android屏幕适配方案)。
implementation 'me.jessyan:autosize:1.1.2'
luban图片压缩
//luban图片压缩
implementation 'top.zibin:Luban:1.1.3'
h5加载图片太大的问题
//h5加载图片太大的问题
implementation 'org.jsoup:jsoup:1.10.1'
bugly
//bugly 其中latest.release指代最新Bugly SDK版本号,也可以指定明确的版本号,例如2.2.0
implementation 'com.tencent.bugly:crashreport:latest.release'
implementation 'com.tencent.bugly:nativecrashreport:latest.release'
圆角进度条
//圆角进度条
implementation 'com.akexorcist:RoundCornerProgressBar:2.0.3'
日历选择器
//日历选择器
implementation 'com.joybar.calendar:librarycalendar:1.0.5'
时间选择器
//时间选择器
implementation 'com.github.codbking:PickTime:v1.0.1'
implementation 'com.contrarywind:Android-PickerView:4.1.8'
EventBus
//EventBus
implementation 'org.greenrobot:eventbus:3.1.1'
ArcGis地图
//地图
implementation 'com.esri.arcgisruntime:arcgis-android:100.6.0'