public abstract class AbstractSingleFloatProperyUpdater extends java.lang.Object implements AnimationPropertyUpdater
AnimationPropertyUpdater subclasses that updates a single float property
value. It helps to handle convertion from animation progress to the actual value as well as the
quite common case when no starting value is provided.| Modifier | Constructor and Description |
|---|---|
protected |
AbstractSingleFloatProperyUpdater(float toValue) |
protected |
AbstractSingleFloatProperyUpdater(float fromValue,
float toValue) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract float |
getProperty(android.view.View view) |
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 propertyValue) |
protected AbstractSingleFloatProperyUpdater(float toValue)
protected AbstractSingleFloatProperyUpdater(float fromValue,
float toValue)
protected abstract float getProperty(android.view.View view)
protected abstract void setProperty(android.view.View view,
float propertyValue)
public final void prepare(android.view.View view)
AnimationPropertyUpdaterprepare in interface AnimationPropertyUpdaterview - view that will be animatedpublic final 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