Even with interactive widgets within your custom list item, you should still be able to correctly trigger your onItemClick
listener by setting
android:focusable="false"
android:focusableInTouchMode="false"
on all your interactive widgets (e.g. buttons, checkboxes). For some reason, that does not seem to work with ImageButton
though.
If that still does not work, consider adding a listener to one / both of the LinearLayouts when creating the list elements in your adapter.