This is a common problem often encountered by Android developers. The fix is pretty simple but is just overlooked, hence the problem.

Make sure that you set any widget like a Button, Checkbox, ImageButton and others with the attribute android:focusable=”false” in the XML file.

If you do not, then these widgets will always cause the OnItemClickListener NOT to be invoked.

Or, you could try replacing widgets with their similar counterpart like an ImageButton to ImageView.

Related Posts Plugin for WordPress, Blogger...