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
android android-webview


source to share


No one has answered this question yet

Check out similar questions:

1111
Is abandoning the application incredulous?
1002
Grid motion detection
964
Download file from Android and show progress in ProgressDialog
900
How to turn off landscape mode in Android?
478
Android floating button color change
455
Just for everyone, how to properly preserve the instance state of the fragments on the stack?
2
How to use context action mode with SherlockListFragment function
1
Android Action Bar Menu Item
0
Android menu icon without action bar
0
Android configured on Samsung S3 4.3 Webview showing Fatal Error



All Articles
Loading...
X
Show
Funny
Dev
Pics