Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import android.view.animation.AlphaAnimation;
import android.view.animation.LayoutAnimationController;
import android.widget.ListView;

public class Main {
    public static void setAnimListView(ListView listView) {
        AlphaAnimation animation = new AlphaAnimation(0, 1f);
        animation.setDuration(4000);
        LayoutAnimationController controller = new LayoutAnimationController(animation, 0.5f);
        listView.setLayoutAnimation(controller);
    }
}