I have a list view and I want to show thumbnail of video in it but everytime I scroll images download again. how can I download images once and show it. this is my code:
@Override public View getView(int position, View convertView, ViewGroup parent) { ViewHolder holder = null; if(convertView == null){ rootView = mInflater.inflate(R.layout.adapter_video, parent, false); holder = new ViewHolder(); holder.ivThumbnail = (ImageView) rootView.findViewById(R.id.ivThumbnailVideoAdapter); rootView.setTag(holder); } else{ rootView = convertView; holder = (ViewHolder)rootView.getTag(); } imageLoader.displayImage(update.get(position).getThumbnail(), holder.ivThumbnail, option); return rootView; }
If-Modified-Sinceor other caching related headersbecause I enabled cachinghow? i don't see code related to this in your question