Android - Show floating menu for action mode on Android 4.2

I created a new menu for the action mode. When my webView receives a call to startActionMode, I initialize my menu and it works fine, see below:

 public ActionMode startActionMode(ActionMode.Callback callback)
{
    customSelectionMode = new CustomSelectionMode();
    return super.startActionMode(customSelectionMode);
}

      

Usually when my menu is called floating menu and what I want. My problem occurs with android 4.2 because it doesn't show the floating menu, creating an action bar menu above the screen. What could I do to create a floating menu only, even for older devices?

Tks,

+3


source to share





All Articles