Most visited

Recently visited

Added in API level 1

CycleInterpolator

public class CycleInterpolator
extends BaseInterpolator implements NativeInterpolatorFactory

java.lang.Object
   ↳ android.view.animation.BaseInterpolator
     ↳ android.view.animation.CycleInterpolator


将动画重复指定的循环次数。 变化率遵循正弦模式。

Summary

Public constructors

CycleInterpolator(float cycles)
CycleInterpolator(Context context, AttributeSet attrs)

Public methods

float getInterpolation(float input)

Inherited methods

From class java.lang.Object
From interface com.android.internal.view.animation.NativeInterpolatorFactory
From interface android.animation.TimeInterpolator

Public constructors

CycleInterpolator

Added in API level 1
CycleInterpolator (float cycles)

Parameters
cycles float

CycleInterpolator

Added in API level 1
CycleInterpolator (Context context, 
                AttributeSet attrs)

Parameters
context Context
attrs AttributeSet

Public methods

getInterpolation

Added in API level 1
float getInterpolation (float input)

Parameters
input float
Returns
float

Hooray!