コード例 #1
0
 @Override
 public void onAnimationUpdate(@NonNull final ValueAnimator animation) {
   ViewGroup.LayoutParams layoutParams = mView.getLayoutParams();
   layoutParams.height = (Integer) animation.getAnimatedValue();
   mView.setLayoutParams(layoutParams);
 }
コード例 #2
0
 @Override
 public void onScaleAnimationUpdate(ValueAnimator animation) {
   super.onScaleAnimationUpdate(animation);
   scaleYFloats[index] = (float) animation.getAnimatedValue();
   postInvalidate();
 }
コード例 #3
0
 @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());
    }