How can i change all recyclerview items?


This Content is from Stack Overflow. Question asked by Mehran Kasebvatan

I have a recyclerview and i show the some type of messages in it.
enter image description here

when user clicked on one item play button, the mediaplayer started and if media player running and user click on play button for other items, media player stopped and new sound was playing.

now this is my problem. when second item clicked, how can i change the past item play button image?

i used java in android studio


This question is not yet answered, be the first one who answer using the comment. Later the confirmed answer will be published as the solution.

This Question and Answer are collected from stackoverflow and tested by JTuto community, is licensed under the terms of CC BY-SA 2.5. - CC BY-SA 3.0. - CC BY-SA 4.0.

people found this article helpful. What about you?