这里总结了一些项目经常需要用到的依赖,以前我都是记在一个txt文件上 觉得太麻烦(不同电脑) 就打算把它转移到博客上 随时可以看
哦 对了顺带一提 我的studio是3.1.2版本的 现在最高版本是8.2 有些文件貌似需要翻墙 所以就没更新3.2
这个版本依赖里基本上都是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.10.0' //网络请求Okhttp
Volley:这个我很少用 可能不是最新
implementation 'com.mcxiaoke.volley:library:1.0.19'//网络请求Volley
Retrofit
//网络请求Retrofit与所用Gson
implementation 'com.squareup.retrofit2:retrofit:2.4.0'
implementation 'com.squareup.retrofit2:converter-gson:2.3.0'
Rxjava:三个都需要 配合上边的Retrofit使用更佳
//Rxjava
implementation 'io.reactivex.rxjava2:rxjava:2.1.12'
implementation 'io.reactivex:rxandroid:1.1.0'
implementation 'com.squareup.retrofit2:adapter-rxjava:2.0.2'
Gson
implementation 'com.google.code.gson:gson:2.8.1'//Gson解析
RecyclerView
implementation 'com.android.support:recyclerview-v7:28.0.0-alpha3'//RecyclerView
Glide
implementation 'com.github.bumptech.glide:glide:4.8.0'//Glide解析图片
Picasso
implementation 'com.squareup.picasso:picasso:2.5.2'//Picasso解析图片
轮播图:感觉banner更方便
implementation 'com.jude:rollviewpager:1.4.5'//viewpager轮播图
implementation 'com.youth.banner:banner:1.4.10'//banner轮播图
ORM数据库:这个我也不常用 GreenDao用的多
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'//圆角矩形 没试过
Butter knife注解:这个我没用过。。。先记一下
implementation 'com.jakewharton:butterknife:8.8.1'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'
implementation 'com.scwang.smartrefresh:SmartRefreshLayout:1.0.3'
implementation 'com.scwang.smartrefresh:SmartRefreshHeader:1.0.3'