@Override
 public void onAnimationUpdate(@NonNull final ValueAnimator animation) {
   ViewGroup.LayoutParams layoutParams = mView.getLayoutParams();
   layoutParams.height = (Integer) animation.getAnimatedValue();
   mView.setLayoutParams(layoutParams);
 }
 @Override
 public void onScaleAnimationUpdate(ValueAnimator animation) {
   super.onScaleAnimationUpdate(animation);
   scaleYFloats[index] = (float) animation.getAnimatedValue();
   postInvalidate();
 }
 @Override
 public void onAnimationUpdate(ValueAnimator valueAnimator) {
   mLayoutParams.height = (Integer) valueAnimator.getAnimatedValue();
   mDismissView.setLayoutParams(mLayoutParams);
 }
예제 #4
0
    public void onAnimationUpdate(ValueAnimator animation) {

      invalidate();
      ShapeHolder ball = balls.get(0);
      ball.setY((Float) animation.getAnimatedValue());
    }