Skip to content Skip to sidebar Skip to footer

Which Is More Expensive, Notifydatasetchanged() Or Looping Over A Large Cursor?

Basically, I have a RecyclerView with an adapter populating the data from a cursor. I have two options to get item animations: Use setHasStableIds(true) and override getItemId to

Solution 1:

Option 2 is prone to errors. I would go with option 1, keep it simple.


Post a Comment for "Which Is More Expensive, Notifydatasetchanged() Or Looping Over A Large Cursor?"