Improve ListView efficiency when loading images from SD into the ListView

前端 未结 2 947
深忆病人
深忆病人 2021-01-07 14:14

I am using a custom adapter for my ListView as per the efficient adapter sample by Romain Guy.

In the getView() method of my adapter I am assigning an ImageView a jp

2条回答
  •  轮回少年
    2021-01-07 14:39

    Images need to be processed in background thread. Recycled views need to be taken into account. I try to address all these issues in my sample code, it works fine now, you may take a look Lazy load of images in ListView

提交回复
热议问题