Weird animation on Gallery when a invalidate is requested from it's children

后端 未结 6 1742
春和景丽
春和景丽 2021-01-14 17:38

This is the adapter of my Gallery on which I display ImageViews (thumb of a page)

I want to load the images ASync (some times this can come from Network), so I did t

6条回答
  •  天命终不由人
    2021-01-14 18:20

    Does it by any chance work if you (a) scroll really slowly, or (b) don't recycle the convertView?

    I'll go out on a limb and guess that it does...

    The reason being that when you recycle an ImageView from a previous call to getItem(), you are not cancelling the associated AsyncTask. You will have multiple tasks updating the same ImageView, which could be the behaviour you describe.

提交回复
热议问题