今天热门
热点:

android6.0 PullToRefreshWebView中的FloatMath.floor()不能用了怎么替换,pulltorefreshwebview


protected boolean isReadyForPullEnd() {
float exactContentHeight = FloatMath.floor(mRefreshableView.getContentHeight() * mRefreshableView.getScale());
return mRefreshableView.getScrollY() >= (exactContentHeight - mRefreshableView.getHeight());
}


其中floor要报错怎么替换啊 

解决方案

Android6.0使用 Math.floor 代替 FloatMath.floor 即可;

www.zrccd.nettrue/topics/20180309/188664.htmlTechArticleandroid6.0 PullToRefreshWebView中的FloatMath.floor()不能用了怎么替换,pulltorefreshwebview protectedbooleanisReadyForPullEnd(){ floatexactContentHeight=FloatMath.floor(mRefreshableView.getContentHeight()*mRefreshableView.getSca...

相关文章

    暂无相关文章

用户评论

大家都在看