Closed hoohom closed 7 years ago
WebView webview = (WebView) child; return canScrollVertically(child, 1) || webview.getContentHeight() * webview.getScale() != webview.getHeight() + webview.getScrollY(); 有的机型计算会出现偏差
@hoohom 这个可以自己计算什么时候到达底部,xrefreshview提供了setOnBottomLoadMoreTime方法,具体用法如下: ` refreshView.setOnBottomLoadMoreTime(new OnBottomLoadMoreTime() {
@Override
public boolean isBottom() {
if (stickyLv.getLastVisiblePosition() == mTotalItemCount - 1) {
View lastChild = stickyLv.getListChildAt(stickyLv.getListChildCount() - 1);
return (lastChild.getBottom() + stickyLv.getPaddingBottom()) <= stickyLv.getMeasuredHeight();
}
//没有到达底部则返回false
return false;
}
});`
demo里的CustomViewActivity中有此代码。
@hoohom 用XWebView,已经解决了这个问题。
这是正常的吧 webview不是NestedScrollingChild