Android : custom ListView - get id of item when i click on a button located inside the list

on Monday, September 8, 2014


I have a custom ListView with a button inside it, when i click on this button, the onItemClickListener() is not called, the button's onClick() method is called instead.

What i want to achieve, is to get the id of the list item where is located the button i clicked on (i need this id to delete the good entry from my database).

Thank you !


0 comments:

Post a Comment