0

I want program an Android Interpolator, UI designer gave me 4 numbers about Interpolator. And I don't know how to use these numbers. Is it need to write a custom defined Interpolator? How to program it? Thanks.

Name: rotate

Start: 0(ms)

Dur:100(ms)

Val: 0 degree >>> -15 degree

Interpolator:(0.2, 0, 0.8, 1)

Community
  • 1
  • 1
  • 1
    Possible duplicate of [How to make a smooth image rotation in Android?](https://stackoverflow.com/questions/1634252/how-to-make-a-smooth-image-rotation-in-android) – Mosius Sep 08 '18 at 04:12

1 Answers1

0

UI designer gave me 4 numbers about Interpolator

The four values are the control points of a bezier curve.

Is it need to write a custom defined Interpolator?

You don't need to create your custom Interpolator from scratch, use PathInterpolatorCompat.create() instead.

PathInterpolatorCompat.create(0.2, 0, 0.8, 1)
jaychang0917
  • 1,880
  • 1
  • 16
  • 21