Java tutorial
//package com.java2s; //License from project: Apache License import android.animation.AnimatorSet; import android.animation.ObjectAnimator; import android.view.View; public class Main { public static void animatePulse(final View target) { AnimatorSet set = new AnimatorSet(); set.playTogether(ObjectAnimator.ofFloat(target, "scaleY", 1, 1.1f, 1), ObjectAnimator.ofFloat(target, "scaleX", 1, 1.1f, 1)); set.setDuration(1000); set.start(); } }