How to make multiple ListView with items that are synchronized with each ListView

Solution for How to make multiple ListView with items that are synchronized with each ListView
is Given Below:

I have activity with tab layout and different fragments that corresponds to each tab. My first tab is “All” and the second one is “Favourite”. Those fragments have ListView component with items that references same layout. At the beginning my “Favourite” ListView is empty but “All” ListView has items with heart icon. I implemented the solution that when user tap heart icon, the “liked” item is displayed on “Favourite” ListView, and again when user tap heart icon the item is removed. The problem is that when user tap heart icon in “Favourite” tab then on my “All” tab the item still has icon indicating that item is liked. How to synchronize two ListView items to show the same, actual state (is it liked or not)?