我用到的基本依赖

Gson解析

compile 'com.google.code.gson:gson:2.8.2'

okhttp  取代URLhttp

compile 'com.squareup.okhttp3:okhttp:3.6.0'
recyclerview   listview 和groveiew
implementation 'com.android.support:recyclerview-v7:26.1.0'
/图片加载框架glide

    compile 'com.github.bumptech.glide:glide:3.7.0'

/加载图片
        Glide
                .with(context)
                .load(list.get(position).getIcon())

                .into(holder.image);

//OkHttp:
compile 'com.squareup.okhttp3:okhttp:3.6.0'
//xRecyclerView:
compile 'com.jcodecraeer:xrecyclerview:1.3.2'
//Glide:
compile 'com.github.bumptech.glide:glide:3.7.0'
//gson:
compile 'com.google.code.gson:gson:2.8.2'

猜你喜欢

转载自blog.csdn.net/wumeng5211314/article/details/80429210
今日推荐