简体   繁体   中英

How to force Android ListView NOT to update while scrolling?

I have a ListView with a custom adapter, and an animation in getView() for each item. The point is, that I want to animate each item once, but it happens every time an item appears on screen (I scroll down, more items appear with animation, but when I scroll back, it happens to items I've seen earlier).

I wonder if there is an method to kill ListView update? It's the more annoying because it also reloads images that I get from the web.

The point is, that i want to animate each item once, but it happens every time an item appears on screen

Then keep track of which ones you have animated before and don't animate them again.

I wonder if there is an method to kill ListView update?

No.

It's the more annoying cause it also reloads images that i get from the web.

Cache those images, to memory and/or to disk, so the images are not downloaded multiple times.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM