- Combine
ViewPropertyAnimator methods,
so that the animation runs in parallel. AnimationSet is part of the old api, and you should prefer visualizing the animation over it. If you want to use this technique (which is slightly longer for recording and less optmized), you can choose AnimatorSet (Animat- or ...).
Here is a piece of code that solves your problem with animating view properties:
view.setVisibility(View.VISIBLE); view.setAlpha(0.f); view.setScaleX(0.f); view.setScaleY(0.f); view.animate() .alpha(1.f) .scaleX(1.f).scaleY(1.f) .setDuration(300) .start();
A good tutorial on animating view properties here .
source share