[英]android, how do i put/load images from cache memory?
I my project I have an activity which has a grid view. 我的项目中有一个具有网格视图的活动。 This grid view will show images which are loaded from the Internet. 此网格视图将显示从Internet加载的图像。 Everything is fine and I can see my images in activity. 一切都很好,我可以在活动中看到我的图像。 However, because I'm using a grid adapter, scrolling of the screen is not smooth and it lags. 但是,因为我使用的是网格适配器,所以屏幕滚动不流畅并且滞后。
What is the best practice in terms of smooth scrolling and memory management? 在平滑滚动和内存管理方面的最佳实践是什么?
Please try Lazy Loading in GridView. 请尝试在GridView中进行延迟加载。 check below link. 检查下面的链接。
http://blog.jamesbaca.net/?p=67 http://blog.jamesbaca.net/?p=67
OR 要么
https://github.com/thest1/LazyList https://github.com/thest1/LazyList
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.