[android-developers] Re: Lazy Loading Images in a ListView

2010-01-14 Thread Sam Dutton
I haven't read through the whole thread, but FWIW there's a very good introduction to list view 'lazy loading' techniques in Beginning Android: http://www.apress.com/book/view/1430224193. Look in the sample code under fancylists -- well documented in the book. Sam Dutton On Dec 8 2009, 2:34 pm,

Re: [android-developers] Re: Lazy Loading Images in a ListView

2010-01-14 Thread Mark Murphy
Sam Dutton wrote: I haven't read through the whole thread, but FWIW there's a very good introduction to list view 'lazy loading' techniques in Beginning Android: http://www.apress.com/book/view/1430224193. Look in the sample code under fancylists -- well documented in the book. Hm...

[android-developers] Re: Lazy Loading Images in a ListView

2009-12-10 Thread Samuh
skyhigh: thanks for your reply! I haven't tried to do a lazy background image load like you are doing, but have done some code that uses a holder/wrapper to store the layout findViewById which is a nice optimization so that it doesn't have to call inflate and findViewById again when each

[android-developers] Re: Lazy Loading Images in a ListView

2009-12-10 Thread Samuh
On Dec 9, 1:07 pm, Romain Guy romain...@android.com wrote: You can check out the example I wrote at code.google.com/p/shelves. It does lazy loading of images from the sdcard. Thanks Romain for your time; I will surely check the implementation out. Cheers! -- You received this message because

[android-developers] Re: Lazy Loading Images in a ListView

2009-12-10 Thread Lee
I have also recently been implementing adapter-based image loading into a list. I found that when I used SoftReferences, they started getting cleared very quickly indeed, after my cache of thumbnails was up to maybe 20 or so. When I use normal references, the cache grows happily to a couple of

[android-developers] Re: Lazy Loading Images in a ListView

2009-12-10 Thread Lee
Oh nevermind, I saw you realised the scroll problem already :-) Lee -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to

[android-developers] Re: Lazy Loading Images in a ListView

2009-12-10 Thread Samuh
I found that when I used SoftReferences, they started getting cleared very quickly indeed, after my cache of thumbnails was up to maybe 20 or so. When I use normal references, the cache grows happily to a couple of hundred thumbnails without OOMs being thrown. Being a java newbie, I don't

Re: [android-developers] Re: Lazy Loading Images in a ListView

2009-12-09 Thread Romain Guy
You can check out the example I wrote at code.google.com/p/shelves. It does lazy loading of images from the sdcard. On Tue, Dec 8, 2009 at 11:45 PM, skyhigh skyhigh1...@gmail.com wrote: I haven't tried to do a lazy background image load like you are doing, but have done some code that uses a

[android-developers] Re: Lazy Loading Images in a ListView

2009-12-08 Thread skyhigh
I haven't tried to do a lazy background image load like you are doing, but have done some code that uses a holder/wrapper to store the layout findViewById which is a nice optimization so that it doesn't have to call inflate and findViewById again when each row is displayed. My understanding is