[英]How to load an ImageView by URL(json output) in Android?
url to display the image. url显示图像。 I already displayed the 'text' contents using the following code 我已经使用以下代码显示了“文本”内容
protected void onPostExecute(final Boolean success) {
if (dialog.isShowing()) {
dialog.dismiss();
}
ListAdapter adapter = new SimpleAdapter(context, jsonlist,
R.layout.list_item, new String[] { ID, TITLE,
LOGO}, new int[] {
R.id.flyer_id, R.id.title, R.id.logo
});
setListAdapter(adapter);
lv = getListView();
}
Try loading images using lazy loading concept.There is a good example mentioned in github. 尝试使用延迟加载概念加载图像。在github中提到了一个很好的例子。 Try this link https://github.com/thest1/LazyList 试试这个链接https://github.com/thest1/LazyList
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.