Android-常用第三方框架
2022-04-19 本文已影响0人
晴天ccc
常用第三方框架
- 网络请求+数据解析:
Retrofit+RxJava+GSON
//Retrofit网络请求框架
implementation 'com.squareup.retrofit2:retrofit:2.9.0'
//日志打印
implementation 'com.squareup.okhttp3:logging-interceptor:4.9.0'
//Gson转换器
implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
//String转换器
implementation 'com.squareup.retrofit2:converter-scalars:2.9.0'
//RxJava
implementation "io.reactivex.rxjava2:rxandroid:2.0.2"
implementation "com.squareup.retrofit2:adapter-rxjava2:2.9.0"
- 各类消息提示框:
DialogX
//DialogX提示框
def dx_version = "0.0.46"
implementation "com.github.kongzue.DialogX:DialogX:${dx_version}"
- 网络图片加载框架:
Glide
//Glide图片加载框架
implementation 'com.github.bumptech.glide:glide:4.13.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.13.0'
- 轮播图:
Banner
//Banner图片轮播框架
implementation 'io.github.youth5201314:banner:2.2.2'
- 本地数据库:
Room
//Room数据库框架
def room_version = "2.4.1"
implementation "androidx.room:room-runtime:${room_version}"
annotationProcessor "androidx.room:room-compiler:${room_version}"
- ListView+上下拉刷新:
Recyclerview+SmartRefreshLayout
//Recyclerview
implementation 'androidx.recyclerview:recyclerview:1.1.0'
//SmartRefreshLayout上下拉刷新
def refresh_version = "2.0.5"
implementation "io.github.scwang90:refresh-layout-kernel:${refresh_version}" //核心依赖
implementation "io.github.scwang90:refresh-header-classics:${refresh_version}" //经典刷新
implementation "io.github.scwang90:refresh-footer-classics:${refresh_version}" //经典加载
- 权限管理框架:
EasyPermissions
//EasyPermissions权限管理框架
implementation 'pub.devrel:easypermissions:3.0.0'