Java tutorial
//package com.java2s; //License from project: Apache License import android.animation.ObjectAnimator; import android.view.View; public class Main { public static void startAnim(View view) { view.clearAnimation(); ObjectAnimator scaleY = ObjectAnimator.ofFloat(view, "scaleY", 0.2f, 1f); scaleY.setDuration(300); scaleY.start(); } }