I encountered the same problem as well. Whenever I put a checkbox on a list item or an expandable list item, the onListItemClick() stops working.
I just want to know how was the Gmail app list view created. Romain Guy mentioned in the video that it was created using a custom view but how did the author manage to make the onListItemClick() work? I had to write an onClickListener for my custom view in order to make up for onListItemClick not working and I am not too happy with it. Please help me out with this. On Sep 18, 1:01 pm, Bryan <[email protected]> wrote: > Scoured the docs and forums, couldn't find an answer or reason why > this is happening: > > I have a class that extends ListActivity and a View coming from XML > for each row that looks like this: > > <LinearLayout ...> > <TextView ... /> > <TextView ... /> > > <CheckBox ... /> > </LinearLayout> > > When I click on one of the items in the list, the onListItemClick() i > have in my activity is not invoked. Turns out, if I comment out the > CheckBox node in my layout xml, it works. I feel like there is a > simple explanation that I don't know about.. maybe because CheckBox is > an actual interactive widget it's overriding some click action or > something? > > Help appreciated. > > -bryan. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

