- First refer to the button for which you want to set the listener in the getView() method of your Adapter.
- Then Simply create the onClick() function outside the getView(), but inside the Adapter.
OnClickListener on custom list view's button
Vishal Shrestha / Author & Founder
A developer by profession, a born Adventurer. I mainly do Android but like to get my hands dirty with web development and a little bit of Python. I would't rather go on a Trek than a party and you can find me having a few rounds with the heavy bag to let out the steam ;)
For Business info : My Portfolio Site.