android - MultiChoiseModeListener methods are never called -


i have listview custom adapter. in activity oncreate() method set listview choice mode multiple_choise_modal , provide multichoisemodelistener implementation wrote. problem listener methods never called, except constructor. long-clicking triggers listview item onclick() method, instead of triggering oncreateactionmode or anything.

i tried using simplecursoradapter instead of custom adapter , using simple_list_item_1 instead if item layout, has not helped much, methods still silent.

so, can provide ideas can causing issue?

ok, figured out. have no idea why happens, if view of item in listview clickable selection not work. fix problem had use onlistitemclick(listview l, view v, int position, long id)in listactivity instead of separate listeners each item. hope helps somebody


Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

.htaccess - Matching full URL in RewriteCond -