Answer the question
In order to leave comments, you need to log in
How can I make the radio play when the recycle view element is clicked?
the fact is that I need to write an application that will play 1 radio station, I made a standard one, I press play and the station plays ( air.radiorecord.ru:8102/sd90_320) , but I also need to do the same in the recycle view, so that when when pressed, it also started to play, as in the case of the button, I wrote the same code, but it does not play, all classes are in the photo
Answer the question
In order to leave comments, you need to log in
In the adapter's onBindViewHolder method, add your own listener (on click listener) to each element and do what you need, in your case, play a specific radio corresponding to this element.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question