get Fade In Listener - Android Animation

Android examples for Animation:Fade Animation

Description

get Fade In Listener

Demo Code


//package com.java2s;

import android.view.View;

import android.view.animation.Animation;
import android.view.animation.Animation.AnimationListener;

public class Main {
    private static AnimationListener getFadeInListener(final View view) {
        final AnimationListener fadeInListener = new AnimationListener() {

            public void onAnimationEnd(final Animation animation) {

            }//from  w w  w. j  a  v a2s .  c  om

            public void onAnimationRepeat(final Animation animation) {

            }

            public void onAnimationStart(final Animation animation) {
                view.setVisibility(View.VISIBLE);
            }
        };

        return fadeInListener;
    }
}

Related Tutorials