Android: Disable text selection in a webview

This worked for me

mWebView.setOnLongClickListener(new OnLongClickListener() {
    @Override
    public boolean onLongClick(View v) {
        return true;
    }
});
mWebView.setLongClickable(false);

I have not tested, if you don’t want the vibration caused by the long click, you can try this:

mWebView.setHapticFeedbackEnabled(false);

Leave a Comment