I'm trying to programmatically scroll a WebView to the location of a particular element in the DOM tree. But so far I haven't been able to get the WebView to respond to scroll requests. I've tried calling JavaScript that uses window.scrollTo(...)
, but the WebView doesn't respond. On the Java side, I've tried calling the WebView.flingScroll(...)
method. WebView will respond to flingScroll
, but what I need is a scrollTo(...)
capability. Any ideas?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…