Saturday, 10 August 2013

MultiChoiseModeListener methods are never called

MultiChoiseModeListener methods are never called

I have ListView with custom adapter. In activity onCreate() method I set
ListView choice mode to MULTIPLE_CHOISE_MODAL and provide it with
MultiChoiseModeListener implementation I wrote. The problem is listener
methods never get called, except the constructor. Long-clicking just
triggers listview item onClick() method, instead of triggering
onCreateActionMode or anything.
I tried using SimpleCursorAdapter instead of my custom adapter and using
simple_list_item_1 instead if my item layout, has not helped much, methods
are still silent.
So, can anybody provide any ideas what can be causing this issue?

No comments:

Post a Comment