title: responding to buttons inside gridview in android
body: <p>I have created a grid view with buttons inside.</p>
  
  <p>But now the problem is that i don't understand for which click am i suppose to respond? The one on the grid view or the one on the button?</p>
  
  <p>Moreover i have really no idea on how to set click listeners in the custom adapter class that i have created or should i set them in the main class.</p>
  
  <p>I have tried googling but to no use. I would be really really thankful if someone helps me in figuring out this conceptual problem or at least point me towards a good resource. Thanks.</p>