When I click on each item in the list it shows me a different message

Hello, I am creating a TV application, what I am doing at the moment; I can view titles, subtitles, and images. I would like that when I click on any of the items I get a different message depending on what is selected, how can I do it?