In my app, a GridView
has list of contents. Each item is inflated with a layout. Single item inside the gridview contains, an image and 2 textviews
.
I have a requirement that when I click on the image, the image should be replaced with another image and when I click on any other places it should open a popup. I am able to listen to the second event, using OnItemClickListener
. It opens the popup. How can I handle the first case? I mean how can I listen to OnClick
event of image?