Android ListView updating of Image Thumbnails using AsyncTask Causes View recycling

后端 未结 3 1641
孤独总比滥情好
孤独总比滥情好 2020-12-13 16:37

I have been trying to get thumbnails to work with an AsyncTask for image files in a ListView. I have been having the common problem of Row Recycling, and thus on scrolling t

3条回答
  •  一生所求
    2020-12-13 16:57

    you can try passing in ListView into your Adapter constructor from your activity (may be even into your async task depends how you want to implement it). and compare the position using getFirstVisiblePosition() and getLastVisiblePosition() against your mPosition

提交回复
热议问题