android6.0 PullToRefreshWebView中的FloatMath.floor()不能用了如何替换

来源:互联网 发布:微信如何打开淘宝链接 编辑:程序博客网 时间:2024/05/16 17:16

android6.0 PullToRefreshWebView中的FloatMath.floor()不能用了如何替换

android6.0 PullToRefreshWebView中的FloatMath.floor()不能用了怎么替换
protected boolean isReadyForPullEnd() {
float exactContentHeight = FloatMath.floor(mRefreshableView.getContentHeight() * mRefreshableView.getScale());
return mRefreshableView.getScrollY() >= (exactContentHeight - mRefreshableView.getHeight());
}

其中floor要报错怎么替换啊

——解决思路———————-
Android6.0使用 Math.floor 代替 FloatMath.floor 即可;

原创粉丝点击