我可以将 Volley 与 Picasso 一起使用吗?
Can I use Volley with Picasso?
说我有这个方法
String getURL(){}; // means return a string URL asynchronously
getURL()
使用 Volley 请求一个 JSON-object,GSON 解析该对象以获得图像 URL。
我可以用 Picasso 做这个吗?
Picasso
.with()
.load(getURL())
.placeholder()
.into();
毕加索会用实际图像刷新占位符图像吗?
我可以在 Volley 的 onResponse 方法中使用 Picasso。
众所周知,Volley 是异步的,因此在 Volley 请求的 onResponse
中,您已成功获取图像的 Url ,您可以使用 Picasso 加载 Url 进入 ImageView。
希望对您有所帮助!
说我有这个方法
String getURL(){}; // means return a string URL asynchronously
getURL()
使用 Volley 请求一个 JSON-object,GSON 解析该对象以获得图像 URL。
我可以用 Picasso 做这个吗?
Picasso
.with()
.load(getURL())
.placeholder()
.into();
毕加索会用实际图像刷新占位符图像吗?
我可以在 Volley 的 onResponse 方法中使用 Picasso。
众所周知,Volley 是异步的,因此在 Volley 请求的 onResponse
中,您已成功获取图像的 Url ,您可以使用 Picasso 加载 Url 进入 ImageView。
希望对您有所帮助!