我想要在我的WebView中向下滚动页面。因此,我找到了函数.pageDown(true)
。问题是这个函数对我来说并没有真正起作用,大多数情况下什么都不会发生。
代码片段:
wvChat.loadData(chat_, "text/html; charset=utf-8", "UTF-8");
wvChat.setWebViewClient(new WebViewClient() {
public void onPageFinished(WebView view, String url) {
wvChat.pageDown(true);
}
});
有没有其他方法可以使用,或者在onPageFinished中使用是错误的?