Reputation: 215
can anyone tell me how can I use notifyDataSetChanged();
function when I want to refresh my arrylist in a activity when myadapter extends baseAdapter !!!
thanks a lot ...
Upvotes: 1
Views: 4375
Reputation: 5895
You need to add
lviewAdapter.notifyDataSetChanged();
Here you can find details.
Upvotes: 0
Reputation: 15847
when ever data of your array is changed you can call adapter.notifyDataSetChanged();
will refresh the data of your listview.
Upvotes: 2