R
R
rafaelSalihov2020-01-22 00:39:44
Java
rafaelSalihov, 2020-01-22 00:39:44

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

1 answer(s)
D
Denis Zagaevsky, 2020-01-22
@rafaelSalihov

RecyclerView
Update data in list
notifyItemUpdated with payload
Update image in onBindViewHolder

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question