1

I set an Adapter to a ListView:

myListView.setAdapter(new listAdapter(this));

in this adapter, I do some operations and I set an Image to the imageView in each lines of the ListView:

holder.image.setImageDrawable(anImage)

I also have 2 RadioButtons in the project, and what I want to do is changing the image of ONE listView when I check a RadioButton.

My problem: I don't know how "recover" an Image of a line. Does anyone know how I can do it?

Need some help, please.

grgvn
  • 1,309
  • 1
  • 12
  • 25

1 Answers1

1

Call ListView.invalidateViews(). That'll trigger a redraw and set the correct image in getView() or bindView().

Steve Prentice
  • 23,230
  • 11
  • 54
  • 55