41.6 Working with Interpolators
As previously discussed, interpolators can be used to modify the behavior of a transition in a variety of ways and may be specified either in code or via the settings within a transition XML resource file.
When working in code, new interpolator instances can be created by calling the constructor method of the required interpolator class and, where appropriate, passing through values to further modify the interpolator behavior:
·AccelerateDecelerateInterpolator()
·AccelerateInterpolator(float factor)
·AnticipateInterpolator(float tension)
·AnticipateOvershootInterpolator(float tension)
·BounceInterpolator()
·CycleInterpolator(float cycles)
·DecelerateInterpolator(float factor)
·LinearInterpolator()
·OvershootInterpolator(float tension)
Once created, an interpolator instance can be attached to a transition using the setInterpolator() method of the Transition class. The following...