Display a Listview / ExpandableListView Image List When NotifyDataSetChanged Is Invoked

Listview / ExpandableListView will be constantly updated and new entries will appear in it. and each line contains an image and text.

when I call notifyDataSetChanged , a random image in the line will be displayed. I understand that the reason for the submission is updated from top to bottom. But is there a way to update the content without updating the entire list, or in any case, so that the image does not display?

I tried Invalidate() , but that is not what I want.

Is there a way to configure listview / ExpandableListView to use?

+7
source share
1 answer

One thing can be done

1.Sign up all the child views currently on the screen, this may help you overflowing https://stackoverflow.com/a/51896/ ...

2. Then, in each child, first update the array, then see what needs to be updated, not the image. How to update one row in the ListView?

Hope this helps you.

Thanks.

0
source

All Articles