Answer the question
In order to leave comments, you need to log in
How to change picture in ListView or Recyclerview for clicked item?
How is it done in general or some kind of instruction.
I have a picture for each element in the listview and the sound is played when you click on the picture of the element from the listview, you need to make it clear that the sound will play, the program does not freeze, so change the picture for the clicked element.
Answer the question
In order to leave comments, you need to log in
RecyclerView
Update data in list
notifyItemUpdated with payload
Update image in onBindViewHolder
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question