常用模块
- 常用工具类库
implementation 'com.blankj:utilcode:1.18.1' - SmartRefresh刷新组件
implementation 'com.scwang.smartrefresh:SmartRefreshLayout:1.1.0-alpha-14'
implementation 'com.scwang.smartrefresh:SmartRefreshHeader:1.1.0-alpha-14'
api 'com.scwang.smart:refresh-layout-kernel:2.0.1'
api 'com.scwang.smart:refresh-header-material:2.0.1'
api 'com.scwang.smart:refresh-footer-ball:2.0.1'
检测模块
- 内存检测 LeakCanary
debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.1'
releaseImplementation 'com.squareup.leakcanary:leakcanary-android-no-op::2.1' - 卡顿检测 BlockCanary
implementation 'com.github.markzhai:blockcanary-android:1.5.0'
图片模块
- glide图片加载-中文文档
implementation 'com.github.bumptech.glide:glide:4.7.1' - glide图片转换
implementation 'jp.wasabeef:glide-transformations:3.3.0' - 图片压缩
implementation 'top.zibin:Luban:1.1.8' - 图片压缩
implementation 'id.zelory:compressor:2.1.0' - 图片剪裁
implementation 'com.github.yalantis:ucrop:2.2.2' - 圆形图片
implementation 'de.hdodenhof:circleimageview:2.2.0' (android.support.v4.widget.CircleImageView) - 超大图加载
implementation 'com.davemorrissey.labs:subsampling-scale-image-view:3.10.0' - fresco
implementation 'com.facebook.fresco:fresco:1.9.0'
网络模块
- retrofit2
implementation 'com.squareup.retrofit2:retrofit:2.9.0'
(解析)implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
(RxJava)implementation 'com.squareup.retrofit2:adapter-rxjava2:2.3.0'
(日志) implementation 'com.squareup.okhttp3:logging-interceptor:3.8.1' - retrofit2 http 内容查看
debugImplementation 'com.readystatesoftware.chuck:library:1.1.0'
releaseImplementation 'com.readystatesoftware.chuck:library-no-op:1.1.0' - App内存泄漏检测
debugImplementation 'com.squareup.leakcanary:leakcanary-android:1.6.1'
releaseImplementation 'com.squareup.leakcanary:leakcanary-android-no-op:1.6.1'
组件模块
-
数据提示角标
implementation 'q.rorbin:badgeview:1.1.3' -
图片轮播
implementation 'com.bigkoo:ConvenientBanner:2.1.4' -
侧滑删除
implementation 'com.yanzhenjie:recyclerview-swipe:1.1.4' -
跑马灯效果
implementation 'com.gongwen:marqueelibrary:1.1.3' -
视频播放组件
implementation cn.jzvd:jiaozivideoplayer:6.0.1
其他模块
- GreenDAO数据库 官网
implementation "org.greenrobot:greendao:3.2.2" - 打开键盘黑一下处理库JKeyboardPanelSwitch
implementation'cn.dreamtobe.kpswitch:library:1.6.1' - 多线程下载FileDownloader
implementation'cn.dreamtobe.kpswitch:library:1.6.1' - FlexboxLayout流式布局
implementation 'com.google.android:flexbox:1.0.0' - eventbus
implementation 'org.greenrobot:eventbus:3.1.1'
UI
博客链接
-
七牛短视频框架
支持视频压缩剪裁等其他操作,接入后App增加2M左右 -
ViewPager切换动画