[英]How to load an ImageView by URL(json output) in Android?
url顯示圖像。 我已經使用以下代碼顯示了“文本”內容
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();
}
嘗試使用延遲加載概念加載圖像。在github中提到了一個很好的例子。 試試這個鏈接https://github.com/thest1/LazyList
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.