Refresh a ListView if I change the content of the ListItem

Posted by michael on Stack Overflow See other posts from Stack Overflow or by michael
Published on 2010-03-16T07:58:37Z Indexed on 2010/03/16 8:06 UTC
Read the original article Hit count: 242

Filed under:

Hi,

I have a ListView in my android activity. And I populate the ListView by sub-class the BaseAdaptor (which returns a View in getView() method).

What if in my click listener of a button in a list item view, I

  • change the text of the TextView in the List item view or
  • change the dimension of the list item view by adding/removing children of the list item view

What is an efficient to refresh my listView? I don't want the listView to re-trigger a query since there is no data change.

Thank you.

© Stack Overflow or respective owner

Related posts about android