public class TweenAnimator extends BaseAnimator
Animator.AnimatorListener| Modifier and Type | Field and Description |
|---|---|
protected float |
mCurrentUninterpolatedValue |
protected float |
mCurrentValue |
protected int |
mDuration |
protected Interpolator |
mInterpolator |
protected float |
mLastValue |
protected int |
mLoopCount |
protected int |
mLoopMode |
protected boolean |
mReversed |
protected int |
mTripCount |
mAccumulating, mData, mElapsedTime, mLastDeltaTime, mLifeEnded, mLifespan, mListener, mRunning, mStartDelay, mTarget| Constructor and Description |
|---|
TweenAnimator() |
TweenAnimator(Interpolator interpolator) |
| Modifier and Type | Method and Description |
|---|---|
void |
end() |
float |
getCurrentValue() |
int |
getDuration() |
Interpolator |
getInterpolator() |
int |
getLoop() |
int |
getLoopCount() |
boolean |
isReversed() |
protected void |
onLoop() |
protected void |
onUpdate(float value) |
void |
setDuration(int duration) |
void |
setInterpolator(Interpolator interpolator) |
void |
setLoop(int loop) |
void |
setLoopCount(int value) |
void |
setReversed(boolean reversed)
To explicitly play in reversed direction
|
void |
startElapse(int elapsedTime)
Start with a specific elapsed time
|
boolean |
update(int deltaTime) |
elapse, getData, getElapsedTime, getLifespan, getListener, getStartDelay, getTarget, isAccumulating, isRunning, reset, setAccumulating, setData, setElapsedTime, setLifespan, setListener, setStartDelay, setTarget, start, stopprotected int mDuration
protected Interpolator mInterpolator
protected float mLastValue
protected float mCurrentValue
protected float mCurrentUninterpolatedValue
protected boolean mReversed
protected int mLoopMode
protected int mLoopCount
protected int mTripCount
public TweenAnimator()
public TweenAnimator(Interpolator interpolator)
public void startElapse(int elapsedTime)
BaseAnimatorstartElapse in class BaseAnimatorpublic boolean update(int deltaTime)
update in interface Manipulatorupdate in class BaseAnimatorpublic void end()
end in interface Animatorend in class BaseAnimatorpublic int getDuration()
public void setDuration(int duration)
duration - the duration to setpublic boolean isReversed()
public void setReversed(boolean reversed)
reversed - public Interpolator getInterpolator()
public void setInterpolator(Interpolator interpolator)
interpolator - the interpolator to setpublic int getLoop()
public void setLoop(int loop)
loop - the looping mode to setpublic int getLoopCount()
public void setLoopCount(int value)
public float getCurrentValue()
protected void onUpdate(float value)
protected void onLoop()