android - Enabling batch contextual actions in a ListView without long-click -
i have listview multichoicemodelistener delete items. @ moment, action mode started when long-click performed on item. working fine but, in addition, want allow user enable action mode when click on "edit" button.
is there way enable mode without long-click?
i think looking for: http://developer.android.com/guide/topics/ui/menus.html#cabforviews
basically:
- implement
actionmode.callback
interface - call
startactionmode()
manually on button click
an example commonsware project might help: https://github.com/commonsguy/cw-omnibus/tree/master/actionmode/manual
Comments
Post a Comment