Question:

Click and long press in WebView. The UI of ActionMode (with copy, Share, Select all and search buttons) appears, as shown below:

 

Solutions:

Consume the WebView’s long press event

webview.setOnLongClickListener(new View.OnLongClickListener() { @Override public boolean onLongClick(View v) { return true; }});Copy the code