I have the following structure for implementing a longclicklistener. It works if I click on text in a webview that contains an html link, so I know that the structure is not completely wrong.
I deleted this link now, and the listener just no longer listens for clicks. Does anyone know this problem and have some tips?
private View.OnLongClickListener mLongClickHandler = new View.OnLongClickListener() { @Override public boolean onLongClick(View view) { ... return true; } };
...
mywebview.setOnLongClickListener(mLongClickHandler);
android webview onlongclicklistener
nob Jan 11 2018-11-11T00: 00Z
source share