我从某个网址获取JSON响应。此响应包含一些文本和图像URL。
我想创建一个ListView
,我可以在其中显示缩略图图片,标题和一些描述。
我该怎么做?
我的JSON: -
[
{
"SourceId": "ea9c86e1-c638-45dd-9619-8d7053458a48",
"ArticleGuid": "5bd475e8-945f-444b-93d5-7a1a0d757557",
"Url": "https://zsome/DispForm.aspx?ID=1",
"Title": "something",
"Body": "<div><p><img alt=\"_MG_2375-58.jpg\" src=\"some/_MG_2375-58.jpg\" style=\"margin:5px;width:266px;vertical-align:auto;float:left;\" /></p><font size=\"3\"><p> blah blah",
"EnterpriseKeywords": "",
"ThumbnailPath": "https://some.net/5bd475e8-945f-444b-93d5-7a1a0d757557/_MG_2375-58.jpg",
"ThumbnailDescription": "",
"ImageUrls": "someurl/-58.jpg",
"ImageBlobUrls": "some/475e8-945f-444b-93d5-7a1a0d757557/_MG_2375-58.jpg",
"isPlaceHolderForThumbnail": false,
"PublishedDate": "2014-03-02T15:39:00Z",
"NumberOfComments": 9,
"NumberOfViews": 13,
"CreatedDate": "2014-03-03T00:43:08Z",
"AuthorEncodedAccountName": "acnanjak",
"AuthorDisplayName": "abc",
"ID": 1,
"SourceTitle": "New",
"SourceUrl": "https://xome.com"
},
{
"SourceId": "ea9c86e1-c638-45dd-9619-8d7053458a48",
"ArticleGuid": "5bd475e8-945f-444b-93d5-7a1a0d757557",
"Url": "https://zsome/DispForm.aspx?ID=1",
"Title": "something",
"Body": "<div><p><img alt=\"_MG_2375-58.jpg\" src=\"some/_MG_2375-58.jpg\" style=\"margin:5px;width:266px;vertical-align:auto;float:left;\" /></p><font size=\"3\"><p> blah blah",
"EnterpriseKeywords": "",
"ThumbnailPath": "https://some.net/5bd475e8-945f-444b-93d5-7a1a0d757557/_MG_2375-58.jpg",
"ThumbnailDescription": "",
"ImageUrls": "someurl/-58.jpg",
"ImageBlobUrls": "some/475e8-945f-444b-93d5-7a1a0d757557/_MG_2375-58.jpg",
"isPlaceHolderForThumbnail": false,
"PublishedDate": "2014-03-02T15:39:00Z",
"NumberOfComments": 9,
"NumberOfViews": 13,
"CreatedDate": "2014-03-03T00:43:08Z",
"AuthorEncodedAccountName": "acnanjak",
"AuthorDisplayName": "abc",
"ID": 1,
"SourceTitle": "New",
"SourceUrl": "https://xome.com"
}]
答案 0 :(得分:0)