An Android library that allows you to easily create applications with slide-in menus. You may use it in your Android apps provided that you cite this project and include the license in your app. Thanks!
Apache License 2.0
11.07k
stars
5.03k
forks
source link
error when running SlidingMenu FloatMath.sin(f) #761
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.
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));
}
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.