Android的,如何再次停止阅读getView()函数,如果内容是已经下载在ListView [英] Android, how to stop reading getView() function again, if the content is already downloaded in the ListView

查看:97
本文介绍了Android的,如何再次停止阅读getView()函数,如果内容是已经下载在ListView的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是一个新手,Android的家伙。

I am a newbie Android guy.

我有ListView控件的每一个元素上显示图像的ListView控件,它工作正常......但是当我开始滚动我已经意识到我的形象再一次,如果它显示在我的手机设备的屏幕下载!

I have a ListView displaying images on every element of the ListView, It works fine... but when I start to scrolling I have realized my image is downloaded again if it is displayed in the screen of my phone device!

我怎么能阻止重装图像或所有的ListView的内容了吗? 或者,我怎么能避免再次读getView()函数,如果我已经下载了它的所有内容吗?

How could I stop reloading the images or all the content of the in ListView again? Or how could I avoid reading the getView() function again If I have already downloaded all its content?

推荐答案

要扩大CaseyB的建议,我建议你看的涡轮充电您的UI交谈

To expand on CaseyB's suggestion, I'd recommend you watch the Turbo-charge your UI talk

看第一部分,看看您是否正确实施适配器。

Watch the first section to see if you implementing the adapter properly.

此外开始从50:00观看为位图高速缓存的一个简单的例子。事实上观看整个视频。

Also start watching from 50:00 for a simple example of a bitmap cache. In fact watch the whole video.

这篇关于Android的,如何再次停止阅读getView()函数,如果内容是已经下载在ListView的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆