public abstract class AbstractFloatPairPropertyUpdater extends java.lang.Object implements AnimationPropertyUpdater
AnimationPropertyUpdater subclasses that updates a pair of float property
values. It helps to handle convertion from animation progress to the actual values as
well as the quite common case when no starting value is provided.| Modifier | Constructor and Description |
|---|---|
protected |
AbstractFloatPairPropertyUpdater(float toFirst,
float toSecond) |
protected |
AbstractFloatPairPropertyUpdater(float fromFirst,
float fromSecond,
float toFirst,
float toSecond) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
getProperty(android.view.View view,
float[] returnValues) |
void |
onFinish(android.view.View view)
This method will be called at the end of animation.
|
void |
onUpdate(android.view.View view,
float progress)
This method will be called for each animation frame
|
void |
prepare(android.view.View view)
This method will be called before animation starts.
|
protected abstract void |
setProperty(android.view.View view,
float[] propertyValues) |
protected AbstractFloatPairPropertyUpdater(float toFirst,
float toSecond)
protected AbstractFloatPairPropertyUpdater(float fromFirst,
float fromSecond,
float toFirst,
float toSecond)
protected abstract void getProperty(android.view.View view,
float[] returnValues)
protected abstract void setProperty(android.view.View view,
float[] propertyValues)
public void prepare(android.view.View view)
AnimationPropertyUpdaterprepare in interface AnimationPropertyUpdaterview - view that will be animatedpublic void onUpdate(android.view.View view,
float progress)
AnimationPropertyUpdateronUpdate in interface AnimationPropertyUpdaterview - view to update propertyprogress - animation progress from 0..1 range (may slightly exceed that limit in case of
spring engine) retrieved from Animation engine.public void onFinish(android.view.View view)
AnimationPropertyUpdaterAnimationPropertyUpdater.onUpdate(android.view.View, float) by passing value close to 1.0 or in a case some frames got dropped.onFinish in interface AnimationPropertyUpdaterview - view to update property