I have MyActivity with WebView element. When I "long press" on web view the ActionBar pops up. If I try to access the action bar like
getActionBar()
somewhere inside my activity I get null. It seems the web view is using some kind of menu popup.
QUESTIONS:
This is called an ActionMode
. You can make it overlay your Activity by setting android:windowActionModeOverlay="true"
in your theme, like setting android:windowActionBarOverlay
to have the ActionBar
overlay content.
There is an ActionMode hook in Activity which you can maybe use: onActionModeStarted()
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With