tags:

views:

57

answers:

1

Hi,

I have a ListActivty and I overload the onListItemClick(ListView listView, View view, int position, long id) in my List Activity.

My question is why onListItemClick() not getting called back (i have breakpoint in my debugger) when I have an ImageButton in my list item view (the one view created by my list adaptor from cursor)?

Thank you.

+1  A: 

Is the button's click occurring, but not the list item? This might be a focus problem where the button is taking the focus away from the list item. Try setting myImageButton.setFocusable(false);

Aurora