I have a list view where items have a text view and a button. I have managed to make list view onclick and button on click work together. The problem is that when I click th
Some options:
You can have separate OnClickListener instances for each button.
OnClickListener
You can call setTag() on your button to store arbitrary data (e.g. index or identifier) and retrieve it later with getTag()
setTag()
getTag()