objectanimator
ObjectAnimator onAnimationEnd listener is called before the animation finishes
ObjectAnimator onAnimationEnd listener is called before the animation finishes
Android: How to make a nice heartbeat animation? [closed]
Android: How to make a nice heartbeat animation? [closed]
How to reset view to original state after using animators to animates its some properties?
See the solution I came up with as I had a similar issue with animations inside views in a recycler view, so I had to find a way to reset them: Trying to reset values from Property Animator to be used in recycler view Good news in Android O these will be better supported
Android properties that can be animated with ObjectAnimator
Better late than never, so here is the comprehensive list of the properties that can be animated with ObjectAnimator. http://developer.android.com/guide/topics/graphics/prop-animation.html#views
Android property animation: how to increase view height?
ValueAnimator anim = ValueAnimator.ofInt(viewToIncreaseHeight.getMeasuredHeight(), -100); anim.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() { @Override public void onAnimationUpdate(ValueAnimator valueAnimator) { int val = (Integer) valueAnimator.getAnimatedValue(); ViewGroup.LayoutParams layoutParams = viewToIncreaseHeight.getLayoutParams(); layoutParams.height = val; viewToIncreaseHeight.setLayoutParams(layoutParams); } }); anim.setDuration(DURATION); anim.start();