Android: web browsing with highlighted link

I work with WebView on android and cannot figure out how to make the orange backlight that appears in the browser to display in my webview.

To explain more clearly, give me an example.

When you click the link / image / video in the Android browser, you will see an orange colored rectangle superimposed on this object. But when I try to do the same with my webview, it shows nothing and proceeds to download this link

+3
source share
2 answers

ABOUT! I feel like such an idiot ... webview does the default highlighting, the only thing I did not give it attention.

adding this line solved my problem

myWebView.requestFocus (View.FOCUS_DOWN);

+3

, webview , - - , "mWebView.clearFocus()"

0

Source: https://habr.com/ru/post/1789737/


All Articles