Java tutorial
//package com.java2s; import android.animation.ObjectAnimator; public class Main { private static long duration = 1500; public static void scale(Object v, int scale) { ObjectAnimator.ofInt(v, "width", scale).setDuration(duration).start(); } }