Horizontal ListView not updating

133 Views Asked by At

I'm developing an app that has an HorizontalListview, currently I'm using TwoWayView lib, and everything works fine, but when it has an item changed, the listview try to reconstruct the view, but nothing changes, here is the code:

if (mHorizontalListViewUsersInChat.getAdapter() != null) {
    usersInChatAdapter.notifyDataSetChanged();
    mHorizontalListViewUsersInChat.invalidate();
} else { 
    mHorizontalListViewUsersInChat.setAdapter(usersInChatAdapter);
}

Inside the adapter there is an ImageView that loads the image with Picasso, but when the adapter is notified, the new URL is not loaded inside the ImageView, somebody could help me?

Thanks.

0

There are 0 best solutions below