Skip to content

bingoogolapple/BGAOkVolley-Android

Repository files navigation

🏃BGAOkVolley-Android🏃

将Volley+OkHttp+Gson的常用功能抽成一个Library,以便自己平时练习时用于请求网络数据

  1. Volley用于普通数据加载
  2. 文件上传是用的OkHttp

还加了RoundedNetworkImageView类:

  1. 支持在布局文件中预览、配置默认图片和失败时的图片
  2. 支持圆角和圆形图像

Gradle依赖 Download

dependencies {
    compile 'com.android.support:appcompat-v7:23.0.0'

    compile 'cn.bingoogolapple:bga-okvolley:latestVersion@aar'
    compile 'com.mcxiaoke.volley:library:1.0.18'
    compile('com.squareup.okhttp:okhttp:2.4.0') {
        exclude group: 'com.squareup.okio', module: 'okio'
    }
    compile 'com.squareup.okhttp:okhttp-urlconnection:2.4.0'
    compile 'com.squareup.okio:okio:1.5.0'
    compile 'com.google.code.gson:gson:2.3.1'
    compile 'cn.pedant.sweetalert:library:1.3'
}

更多详细用法请查看Demo

About

Volley+OkHttp+Gson

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages