ActionMode is supported on library android.support.v7.
An action mode's lifecycle is as follows and we need override it.
onCreateActionMode(ActionMode, Menu) once on initial creation
onPrepareActionMode(ActionMode, Menu) after creation and any time the ActionMode is invalidated
onActionItemClicked(ActionMode, MenuItem) any time a contextual action button is clicked
onDestroyActionMode(ActionMode) when the action mode is closed