i want to provide custom handlers that cut,copy text.
Target on Longclick
you want to get rid of the ActionMode? and create your own??
you can override this and get notified when the default is about to be displayed
@Override
public void onSupportActionModeStarted(ActionMode mode) {
super.onSupportActionModeStarted(mode);
//you can add your custom ui here
mode.setCustomView(....);// it takes a view
}
if you want to close it then you call mode.finish();
you can call it there to close if or finish it if you do not need it.
when it is about to die it calls this onSupportActionModeFinished(ActionMode mode)` the methods i have stated are for the support libraries, hope you know that.
The rest is cheese