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:

  1. implement actionmode.callback interface
  2. call startactionmode() manually on button click

an example commonsware project might help: https://github.com/commonsguy/cw-omnibus/tree/master/actionmode/manual


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -