android - CoordinatorLayout/NestedScrollView/Hide-Show Toolbar/Issue with WebView

谁说胖子不能爱 提交于 2019-12-03 12:07:49

My assumption: Since you are putting the WebView inside a NestedScrollView the scrolling is not done on the WebView level so when you load a new page the NestedScrollView stays in the same position.

Suggestion: create a WebViewClient and override onPageStarted here you should change the NestedScrollView scroll position to 0:

nestedScrollView.scrollTo(0, 0);
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!