常用第三方框架
- 网络请求+数据解析:
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提示框
def dx_version = "0.0.46"
implementation "com.github.kongzue.DialogX:DialogX:${dx_version}"
//Glide图片加载框架
implementation 'com.github.bumptech.glide:glide:4.13.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.13.0'
//Banner图片轮播框架
implementation 'io.github.youth5201314:banner:2.2.2'
//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权限管理框架
implementation 'pub.devrel:easypermissions:3.0.0'
网友评论