public interface AnimationPropertyUpdater
Animation
instance will call onUpdate(android.view.View, float)
several times with a value
representing animation progress. Normally value will be from 0..1 range, but for spring animation
it can slightly exceed that limit due to bounce effect at the start/end of animation.Modifier and Type | Method and Description |
---|---|
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.
|
void prepare(android.view.View view)
view
- view that will be animatedvoid onUpdate(android.view.View view, float progress)
view
- view to update propertyprogress
- animation progress from 0..1 range (may slightly exceed that limit in case of
spring engine) retrieved from Animation
engine.void onFinish(android.view.View view)
onUpdate(android.view.View, float)
by passing value close to 1.0 or in a case some frames got dropped.view
- view to update property