简体   繁体   中英

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. 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. check below link.

http://blog.jamesbaca.net/?p=67

OR

https://github.com/thest1/LazyList

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