In my Android app I have an activity with a listview that displays about 4000 items that are stored locally in a SQLite Database. If I make an edit to an item, how can I get only this change in the listview, without having to refresh all the item list (which means a new query for 4000 results)? This query slows down the performance.
I would like something like NSFetchedResultsController of ios.
Strategy should be -
adapter.notifyDataSetChanged().now you can use the same informtion to update your ArrayList/HashMap whatever you are using to populate your listview. Ex:- suppose you edited 3rd index contact in your listview on successfull update you add like yourarraylist.add(3,contact);
and the fire notifydatasetChanged.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With