Question

i've searched a lot for this, but can't find any advice... I'm providing my own implementation of the classic Action Bar so I declare in all the activities requestWindowFeature(Window.FEATURE_NO_TITLE) but i want to get rid of the Contextual Action Bar too, the one with copy/paste/etc.. does anyone know how to achieve this?

Also i'll provide my own copy/paste feature, and only when needed, so i have to disable longclick feature too inside a webview. Every useful tip would be appreciated.

Was it helpful?

Solution

You need to get an instance of the ActionMode from the MultiChoiceModeListener class, and manually do mode.finish(). This is the hacky way to do it but the other way to do it maybe you can create a scenario where the onDestroyActionMode(ActionMode mode) is called.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top