Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error when running SlidingMenu FloatMath.sin(f) #761

Open
zz0001 opened this issue Oct 31, 2016 · 1 comment
Open

error when running SlidingMenu FloatMath.sin(f) #761

zz0001 opened this issue Oct 31, 2016 · 1 comment

Comments

@zz0001
Copy link

zz0001 commented Oct 31, 2016

In CustomViewAbove.java, line 300,
float distanceInfluenceForSnapDuration(float f) { f -= 0.5f; // center the values about 0. f *= 0.3f * Math.PI / 2.0f; return (float) FloatMath.sin(f); }
"android.util.FloatMath is deprecated" and cannot reslove method sin(float).

I changed "FloatMath" to "Math" and it seems that I can run correctly.

@zz0001
Copy link
Author

zz0001 commented Oct 31, 2016

Same error found in AnimatorProxy.java, line 149
parent.invalidate(
(int) FloatMath.floor(after.left),
(int) FloatMath.floor(after.top),
(int) FloatMath.ceil(after.right),
(int) FloatMath.ceil(after.bottom));
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant