Skip to content

Commit

Permalink
[ProgressIndicator] Changed interpolator for seamless linear indeterm…
Browse files Browse the repository at this point in the history
…inate type from LINEAR_OUT_SLOW_IN to FAST_OUT_SLOW_IN.

PiperOrigin-RevId: 318866756
  • Loading branch information
pekingme authored and ymarian committed Jun 29, 2020
1 parent e4da6b4 commit 0b443ad
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public LinearIndeterminateSeamlessAnimatorDelegate() {
ObjectAnimator connectPoint1Animator =
ObjectAnimator.ofFloat(this, LINE_CONNECT_POINT_1_FRACTION, 0f, 1f);
connectPoint1Animator.setDuration(DURATION_PER_COLOR);
connectPoint1Animator.setInterpolator(AnimationUtils.LINEAR_OUT_SLOW_IN_INTERPOLATOR);
connectPoint1Animator.setInterpolator(AnimationUtils.FAST_OUT_SLOW_IN_INTERPOLATOR);
connectPoint1Animator.setRepeatCount(ValueAnimator.INFINITE);
connectPoint1Animator.setRepeatMode(ValueAnimator.RESTART);
connectPoint1Animator.addListener(
Expand All @@ -77,7 +77,7 @@ public void onAnimationRepeat(Animator animation) {
ObjectAnimator connectPoint2Animator =
ObjectAnimator.ofFloat(this, LINE_CONNECT_POINT_2_FRACTION, 0f, 1f);
connectPoint2Animator.setDuration(DURATION_PER_COLOR);
connectPoint2Animator.setInterpolator(AnimationUtils.LINEAR_OUT_SLOW_IN_INTERPOLATOR);
connectPoint2Animator.setInterpolator(AnimationUtils.FAST_OUT_SLOW_IN_INTERPOLATOR);
connectPoint2Animator.setRepeatCount(ValueAnimator.INFINITE);
connectPoint2Animator.setRepeatMode(ValueAnimator.RESTART);
connectPoint2Animator.addListener(
Expand Down

0 comments on commit 0b443ad

Please sign in to comment.