如何强制的Android的ListView不要在滚动更新? [英] How to force Android ListView NOT to update while scrolling?
问题描述
我有一个的ListView
使用自定义适配器,并在)的每个项目的动画getView(
。问题的关键是,我想一次动画的每个项目,但它发生的每一个项目出现在屏幕上的时间(我向下滚动,更多的项目出现动画,但是当我向后滚动,它发生在我前面看到的项目)
我不知道是否有杀人的ListView更新的方法是什么?这是比较烦人,因为它同时会是我从网上获取的图像。
问题的关键是,我想一旦动画的每个项目,但它发生的每一个项目出现在屏幕上的时间
块引用>然后跟踪哪些你以前的动画,不要再为它们制作动画。
我不知道是否有杀人的ListView更新的方法是什么?
块引用>没有。
这是比较烦人的事业也重新加载图片,我从网络上得到的。
块引用>缓存这些图像,存储器和/或磁盘,所以图像不下载多次。
I have a
ListView
with a custom adapter, and an animation ingetView()
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.
这篇关于如何强制的Android的ListView不要在滚动更新?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!