OkHttp +毕加索+改造 [英] OkHttp + Picasso + Retrofit

查看:175
本文介绍了OkHttp +毕加索+改造的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

现在的问题是如何将所有这些 3 图书馆在一个项目?

The question is how to combine all these 3 libraries in one project?

  • 在做一次OkHttpClient是一个背景层为毕加索和改造。
  • 如何使优先级的改变就像凌空库。 (分页);

感谢

推荐答案

在一言以蔽之:

OkHttpClient okHttpClient = new OkHttpClient();
RestAdapter restAdapter = new RestAdapter.Builder().setClient(new OkClient(okHttpClient)).build();
OkHttpDownloader downloader = new OkHttpDownloader(okHttpClient);
Picasso picasso = new Picasso.Builder(this).downloader(downloader).build();

我不认为这有可能与改造的当前版本的优先事项。

I do not think it's possible to have priorities with the current version of Retrofit.

这篇关于OkHttp +毕加索+改造的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆