我有一个在 json 中提供图像路径的网站。我想获取此路径并在我的 ImageView 中显示图像。
提示:targetSdkVersion="15"
例子:
{
"count": "28",
"data": [
{
"id": "84",
"thumb": "http://mmmmm.cccc.com/data/card/thum/a1f694f5ba0df9147c02b0c0c8cb83c2.jpg",
"category": "Purchase",
"title": "test",
"locationname": "test",
"latitude": "0",
"longitude": "0"
}
]
}
在我的活动中:
ImageView iv = (ImageView) findViewById(R.id.imageView1);
iv.setImageResource(R.drawable.photo); // this show image that has in project and how about display image that using JSON path above