android - how to display an image from the Internet in SimpleAdapter -


i have simpleadapter in want display image internet.

final string[] = { attribute_name_text, attribute_name_image,attribute_name_description }; final int[] = { r.id.tvtext, r.id.ivimg,r.id.textdescr };   sadapter = new simpleadapter(getactivity(), data, r.layout.itemvideo, from, to);                 sadapter.notifydatasetchanged();                 setlistadapter(sadapter); 

i fill data in separate thread

 (element titles : title) {                 m = new hashmap<string, object>();                 m.put(videolist.attribute_name_text, titles.select("a[href]").text());                 m.put(videolist.attribute_name_image, uri.parse(titles.select("img").attr("abs:src")));                 m.put(videolist.attribute_name_description,titles.select("div[style]").first().text());                 m.put("link",titles.select("a[href]").attr("abs:href"));                 data.add(m);             } 

displayed normal data adapter, picture not displayed. if doing so

 m.put(videolist.attribute_name_image, r.drawable.ic_launcher); 

then standard output adapter icon android, need display image internet

hi can use universal image loader purpose, can make custom list , before show progress icon or dialog , later replace image loaaded internet please visit

https://github.com/nostra13/android-universal-image-loader


Comments

Popular posts from this blog

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

objective c - Greedy NSProgressIndicator Allocation -

how to set an OCR language in Google Drive -