Android Webview Anchor Link (Jump link) not working

前端 未结 7 1232
后悔当初
后悔当初 2020-12-01 06:53

I have a WebView in my Android App that is loading an HTML string using the loadDataWithBaseURL() method. The problem is that local anchor links (

7条回答
  •  甜味超标
    2020-12-01 06:56

    I was also facing the same issue. Anchor link was jumping to arbitrary position. Make sure not to hide webview when loading.

    Use Invisible instead of gone.

    This change fixed my issue.

提交回复
热议问题