Search code examples
androidandroid-listviewrefresh

How to refresh Android listview?


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


Solution

  • 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.