[android-developers] Re: listview adapter. Recycle bitmap

2011-10-17 Thread emanuele
Putting the bitmap reference in the convertview tag and retrieve the tag when The getview is called could be a solution? On 17 Ott, 04:41, IcedNet d...@icednet.info wrote: You should look into Romain Guy's 2009/10 Google I/O presentations on UI -- he is the whip with ListViews/UI. If you're

[android-developers] Re: listview adapter. Recycle bitmap

2011-10-16 Thread Studio LFP
Based on the code there, you wouldn't have the chance to recycle the bitmap as you don't keep a handle to it anywhere. Then again, if the ListView discards that particular row and you aren't retaining any handles to the bitmap, then the bitmap should be scheduled for collection by the GC. If

[android-developers] Re: listview adapter. Recycle bitmap

2011-10-16 Thread IcedNet
You should look into Romain Guy's 2009/10 Google I/O presentations on UI -- he is the whip with ListViews/UI. If you're looking for what I think you're looking to do -- which is speed up that list view -- he has a view holder pattern that will do just that. Peace, Dan On Oct 16, 10:08 pm, Studio