How to refresh Android listview?


Question

How to refresh an Android ListView after adding/deleting dynamic data?

1
417
8/6/2015 3:28:18 PM

Accepted Answer

Call notifyDataSetChanged() on your Adapter object once you've modified the data in that adapter.

Some additional specifics on how/when to call notifyDataSetChanged() can be viewed in this Google I/O video.

518
1/25/2017 11:52:03 AM

Also you can use this:

myListView.invalidateViews();

Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow
Icon