Java tutorial
//package com.java2s; import android.view.View; import android.view.animation.Animation; import android.view.animation.AnimationUtils; public class Main { public static void animate(View view, int resAnim) { Animation animFadein = AnimationUtils.loadAnimation(view.getContext(), resAnim); view.startAnimation(animFadein); } }