I have an ActionBar with an OnMenuVisibilityListener and a list of items. When items are selected I show an ActionMode with another menu. I want to listen to show/hide callbacks on the ActionMode overflow menu in a similar way as I do with the ActionBar one. Is there no way get the information that the user opened or closed the overflow menu of an ActionMode?
The OnMenuVisibilityListeneris called when the ActionBar overflow menu is opened or closed (no list items are selected). It it not called when the ActionMode is shown (list items selected)
The ActionModecallback method onPrepareActionMode is called when the ActionMode is created and when the overflow menu is opened - but not when the overflow menu is closed.