的Android负荷图像RecyclerView
我有一个Android应用程序,我使用Volley
分析文本,但图像是无法解析,我的问题是:的Android负荷图像RecyclerView
如何从URL中使用JSON RecyclerView解析图像的ImageView和Volley?
1)尝试使用Square的Picasso Library从url加载图像。检查 它在这里
http://square.github.io/picasso/
2)这种依赖关系添加到您的应用程序gradle这个
编译 'com.squareup.picasso:毕加索:2.5.2'
3)添加以下在您的RecyclerView适配器中使用您的onBindViewHolder方法
Picasso.with(context).load(<您的Image Url >).into(持有人。< ImageView参考>);
这是一个图像,但我有一个这个JSON的URL [链接](http://api.androidhive.info/json/movies.json),我有很多图像没有一个如何做到这一点? (上下文).load()。()。(持有人。
一旦进入你的onBindViewHolder方法就足够了 –
使用http://square.github.io/picasso/ – gaara87
您是否尝试过阅读一些教程或博客? –
谢谢你,这是我的代码我怎么可以添加这??? ??? http://stackoverflow.com/questions/39108249/im-unable-to-parse-image-from-the-json-which-i-get-从服务到recy?noredirect = 1#comment65564207_39108249 –