Reputation: 110620
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.
Upvotes: 2
Views: 1383
Reputation: 4414
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);
Upvotes: 4