Java tutorial
//package com.java2s; import android.*; import android.content.*; import android.view.*; import android.view.animation.*; public class Main { /** load a layout animation sequence from xml */ public static void setLayoutAnimation2(ViewGroup panel, Context ctx) { LayoutAnimationController controller = AnimationUtils.loadLayoutAnimation(ctx, R.anim.slide_in_left); panel.setLayoutAnimation(controller); } }