Recyclerview - Best practices to update a view in viewholder without modifying all of its views

Viewed 514

I have list of feeds to which a user can like/dislike, play video and see description of that feed. I implemented like feature in a way that when like is pressed, there is an api call and on success response I modify that Feed object and call notifyItemChanged(). But the issue here is, onBindViewHolder() is called again, which re-initializes the video. How am I supposed to tackle this issue without using any additional state variable in Feeds Object. I have to update like/dislike view, likes count, people who reacted and comments count but don't want to re-initialize the video and a few other views too.

enter image description here

1 Answers
Related