Reputation: 10840
I know that BaseAdapter
has a mechanism in order to recycle Views in a ListView
for efficiency. But how does it work in CursorAdapter
exactly? Is it the same thing? I haven't really found any documentation on this. The closest there was is with the World of ListView's google IO video, but that doesn't take into account CursorAdapter. Any advice on the matter would be much appreciated!
Upvotes: 1
Views: 1678
Reputation: 87064
The getView()
method is responsible for recycling the row views(it's the same thing as for a non cursor based adapter, just that it delegates the row construction and data binding to two different methods) and for moving the Cursor
to the correct position.
Upvotes: 2