0

Possible Duplicate:
How to refresh Android listview?

I want to refresh whole listview in my android application.

Basically, in listview there are different numbers with their status of busy,off,available etc. So when any number changed his status then i want to change it image at that time without scrolling. So how can i do this?

any idea will be appreciated.

Community
  • 1
  • 1
Rushabh Patel
  • 3,052
  • 4
  • 26
  • 58

2 Answers2

2

I agree with the solution posted by AVD above, you need to call notifyDataSetChanged on your Adapter.

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

Shekhar Chikara
  • 3,786
  • 2
  • 29
  • 52
1

You have to call adapter.notifyDataSetChanged(); method.

KV Prajapati
  • 93,659
  • 19
  • 148
  • 186