[英]How to detect when the scrollbar has reached the top or bottom of webpage?
I am working with WebView
and my problem is that whenever the scrollbar reaches to the end or top of WebView
it should indicate this to me with some boolean value so that I can display the next and previous page correspondingly. 我正在使用
WebView
,但我的问题是,每当滚动条到达WebView
的末尾或顶部时,都应使用一些布尔值向我表明这一点,以便我可以相应地显示下一页和上一页。
I am working on a project and I want to show a HTML file as a html reader so I want to know whenever the scrollbar reaches the end of webpage so I can load the further pages. 我正在做一个项目,我想将HTML文件显示为html阅读器,所以我想知道滚动条何时到达网页的末尾,以便我可以加载其他页面。
I do recommend you iScroll: 我建议您使用iScroll:
http://cubiq.org/iscroll-4
It's easy to use and it works fairly perfect on every mobile platforms. 它易于使用,并且在每个移动平台上都可以完美运行。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.