[android-developers] Re: listview with images: postInvalidate problems
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home