从json获取url链接并添加到listview

时间:2016-02-04 06:48:44

标签: android json

我正在尝试从json响应中获取图像的url链接,使用ArrayList将其保存到string [],然后在gridview中显示图像,如此site所示。我的json看起来像这样:enter image description here

我使用排球获取链接,但我没有正确获取链接。我使用Toast检查了ArrayList的内容,并在[[]]中显示了这样的图像:enter image description here

这就是没有下载图像的原因。我在列表中得到6个空白视图。

float a=033.0   //shows compilation problem

0 个答案:

没有答案