【发布时间】:2015-09-11 12:47:56
【问题描述】:
方法:
@Override
protected boolean isReadyForPullEnd() {
@SuppressWarnings("deprecation")
float exactContentHeight = FloatMath.floor(mRefreshableView.getContentHeight() * mRefreshableView.getScale());
return mRefreshableView.getScrollY() >= (exactContentHeight - mRefreshableView.getHeight());
}
输出:
Error:(116, 39) error: cannot find symbol method floor(float)
有什么办法可以解决这个问题吗?
【问题讨论】:
-
更多详细信息 - 注意:一些输入文件使用或覆盖已弃用的 API。 - 注意:使用 -Xlint:deprecation 重新编译以获取详细信息。
标签: android android-studio window floor