I am using listview to display data, inside listview i am using image in every listeitem.
following method is called from wrapper class
public View getView(int position, View convertView,
ViewGroup parent) { // implementation }
I am following this tutorial http://developer.android.com/guide/samples/ApiDemos/src/com/example/android/apis/view/List4.html
class DownloadImage extends AsyncTask<Void, Void, Drawable>{
@Override
protected Drawable doInBackground(Void... params) {
return Util.getImageFromURL(imageURL);
}
@Override
protected void onPostExecute( Drawable d ) {
getImageIcon().setImageDrawable(d);
}
}
new DownloadImage().execute();
Above code performs lazy image upload for every listItem.
Problem is after loading first image images are getting overlapped on each other.... any idea why this happening ?