Java Code Examples for com.nineoldandroids.animation.ValueAnimator#AnimatorUpdateListener

The following examples show how to use com.nineoldandroids.animation.ValueAnimator#AnimatorUpdateListener . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AnimatedDrawable.java    From FanXin-based-HuanXin with GNU General Public License v2.0 5 votes vote down vote up
@Override
public ValueAnimator.AnimatorUpdateListener createAnimatorUpdateListener() {
  return new ValueAnimator.AnimatorUpdateListener() {
    @Override
    public void onAnimationUpdate(ValueAnimator animation) {
      setLevel((Integer) animation.getAnimatedValue());
    }
  };
}
 
Example 2
Source File: AnimatableDrawable.java    From FanXin-based-HuanXin with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Creates an animator update listener that will animate the drawable directly. This is useful
 * when the drawable needs to be animated by an existing value animator.
 * @return a new update listener
 */
ValueAnimator.AnimatorUpdateListener createAnimatorUpdateListener();