By making the layout clickable, it is consuming the click event.
When the layout isn't clickable, the click event is instead consumed by the GridView
, and will be processed by any OnItemClickListener
set on that GridView
.
Override areAllItemsEnabled
to return false, override isEnabled
and do the check there.