On Apr 6, 2012, at 8:44 AM, gnauck wrote:
> Each time I scroll down and up the list GREF increases and never goes down
> again. The same happens when I open the activity, go back and open it again
> several times.
>
> Is there a work around for this?
The work around is to Not Do Thatâ„¢. The Home_Adapter sample is the _wrong_ way
to do things, as it constantly inflates new View instances.
The gref problem could probably be "fixed" by calling GC.Collect() within
Home_Adapter.GetView() or something, but that would still suck as it would
still create a large number of unnecessary objects (and would quite probably
stall the UI due to GC's).
The better approach is to do what the LabelledSections demo does, which reuses
the `convertView` parameter. I've also updated the TablesAndCellStyles sample
to follow suit:
https://github.com/xamarin/monodroid-samples/commit/a078207533a5499a697662519736b11d412fe830
- Jon
_______________________________________________
Monodroid mailing list
[email protected]
UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid