ListView with CAB - how to make an item clickable but not selectable?
I have one ListView
with a custom adapter. Some items can be selected, others not. Selecting the item to select initializes the CAB.
To disable selection of items, I override isEnabled()
in the adapter class. But disabled items do not trigger callbacks onItemClick()
.
How can I make elements clickable and non-selectable in CAB mode at the same time?
+3
Alexander Zhak
source
to share
1 answer
Maybe a little late, but my solution for this was to add a click listener to the appropriate view in the adapter. From there, you can use the callback you implemented to notify your interface or something.
0
Eduard B.
source
to share