Skip to content Skip to sidebar Skip to footer

Updated Views In List Item Don't Stay Updated When Scrolling Through Listview[img + Source]

The short version of my question: If I have a listview where each item has a button and that button causes a textview on that listitem to be updated, how do I make changes I make t

Solution 1:

In the question's comments, it was established that even though the UI was being updated (based on user interaction), the underlying data used by adapter's getView() weren't.

Answer : Update the data source and call notifyDataSetChanged() on the adapter. Let getView() handle UI updates.

Read through the comments for more information.

Post a Comment for "Updated Views In List Item Don't Stay Updated When Scrolling Through Listview[img + Source]"