Java Code Examples for android.animation.TimeInterpolator#getInterpolation()
The following examples show how to use
android.animation.TimeInterpolator#getInterpolation() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SubtitleCollapsingTextHelper.java From collapsingtoolbarlayout-subtitle with Apache License 2.0 | 5 votes |
private static float lerp( float startValue, float endValue, float fraction, @Nullable TimeInterpolator interpolator) { if (interpolator != null) { fraction = interpolator.getInterpolation(fraction); } return AnimationUtils.lerp(startValue, endValue, fraction); }
Example 2
Source File: CollapsingTextHelper.java From material-components-android with Apache License 2.0 | 5 votes |
private static float lerp( float startValue, float endValue, float fraction, @Nullable TimeInterpolator interpolator) { if (interpolator != null) { fraction = interpolator.getInterpolation(fraction); } return AnimationUtils.lerp(startValue, endValue, fraction); }