Java tutorial
//package com.java2s; import android.content.Context; import android.view.View; import android.view.animation.AnimationUtils; public class Main { /** * Runs a simple animation on a View with no extra parameters. * * @param context * @param view * @param animationId */ private static void runSimpleAnimation(Context context, View view, int animationId) { view.startAnimation(AnimationUtils.loadAnimation(context, animationId)); } }