Thanks, that works!

 ((SimpleAdapter)
FooActivity.this.listView.getAdapter()).notifyDataSetChanged();

The other function (postInvalidate()) was only refreshing stuff off the
list.

Makes me wonder what use it may have.

Best Regards,

John Goche

On Sun, Oct 2, 2011 at 10:07 AM, skink <psk...@gmail.com> wrote:

>
>
> John Goche wrote:
> > Hello,
> >
> > I am overriding SimpleAdapter to add an image to a listview.
> > When I call postInvalidate() inside my onClickListener it is
> > only when the views are scrolled off the screen and then
> > back on screen that the images are updated. The images
> > in the rows which are not off the screen do not get updated.
> > Any ideas what I should do so that the views on the screen
> > are redrawn immediately?
> >
> > Thanks,
> >
> > John Goche
>
> Just call:
> notifyDataSetChanged()
>
> Notifies the attached View that the
> underlying data has been changed
> and it should refresh itself.
>
> pskinkhe attached View that the
> underlying data has been changed
> and it should refresh itself.
>
> pskink
>
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to