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
You can use setTag and getTag here to get the position of the Button Clicked in the ListView,
Something like,
button.setTag(position); // in your getView() method
button.setTag(position);
and then,
int cur_pos = (Integer)v.getTag(); // inside onClick of Button in getView() method
int cur_pos = (Integer)v.getTag();