4 ms·
Android's ListView also is built around view recycling. But these are both situations where the framework supports the recycling.
by yincrash 13y ago
Android's ListView also is built around view recycling. But these are both situations where the framework supports the recycling.
- smoyer 13y agoIs it? I was going to add it to the list, but the Adapter that manages the data actually generates (and caches) a View for each element. Is there something I'm not understanding?
- RyanZAG 13y agoYep it is. The Adapter will generate and cache a view for each item - but once the view moves off the screen, the adapter will reclaim/recycle that view, and the next item to request a view will be given the recycled view. In effect it is identical to the ios or flash list model.
- smoyer 13y agoCool ... I knew I was passed back a "convertView" sometimes but didn't realize it was recycling them.