android6.0 PullToRefreshWebView中的FloatMath.floor

Android 码拜 9年前 (2015-10-16) 972次浏览
protected boolean isReadyForPullEnd() {

float exactContentHeight = FloatMath.floor(mRefreshableView.getContentHeight() * mRefreshableView.getScale());

return mRefreshableView.getScrollY() >= (exactContentHeight – mRefreshableView.getHeight());

}

其中floor要报错 

解决方案:20分
Android6.0使用 Math.floor 代替 FloatMath.floor 就可以了;

CodeBye 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权 , 转载请注明android6.0 PullToRefreshWebView中的FloatMath.floor
喜欢 (0)
[1034331897@qq.com]
分享 (0)