Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to refresh Android listview?

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

like image 555
UMAR-MOBITSOLUTIONS Avatar asked Feb 12 '10 09:02

UMAR-MOBITSOLUTIONS


1 Answers

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.

like image 193
Christopher Orr Avatar answered Sep 19 '22 18:09

Christopher Orr