内存溢出异常时列表视图中快速滚动 [英] out of memory exception during fast scrolling of listview

查看:148
本文介绍了内存溢出异常时列表视图中快速滚动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用列表视图来显示Facebook的个人资料图片,名称,消息,postedpicture。

I am using listview to display facebook profile picture,name,message,postedpicture.

我用scrollviewListener加载下一页data.But当我滚动快速度,无需等待完全我得到java.lang.OutOfMemoryError.bitmap规模超过VM预算加载数据。

I used scrollviewListener to load the next page data.But when I scrolled fastly,without waiting to load the data completely I am getting java.lang.OutOfMemoryError.bitmap size exceeds VM budget.

我收到这个错误在我ImageLoader的类,其中的位图returned.Did我需要改变什么来释放内存。

I am getting this error at my ImageLoader class where the bitmap is returned.Did I need to change anything to deallocate memory.

最重要的是我打电话另一个WebService时,列表视图滚动到达屏幕的底部。

The most important is I am calling another webservice when listview scroll reaches the bottom of screen.

推荐答案

您应该看一看的显示位图高效 Android的文档站点。

You should have a look at Displaying Bitmaps Efficiently of Android Documentation site.

他们奉献了几页,这个确切的问题: java.lang.OutofMemoryError:位图大小超过VM预算

They dedicate a few pages to this exact problem : java.lang.OutofMemoryError: bitmap size exceeds VM budget.

这篇关于内存溢出异常时列表视图中快速滚动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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