View right Out - Android Animation

Android examples for Animation:Slide Animation

Description

View right Out

Demo Code


//package com.java2s;
import android.view.View;
import android.view.animation.TranslateAnimation;

public class Main {
    private static TranslateAnimation ANIM_RIGHT_OUT;

    public static void rightOut(View fragmentView) {
        if (null != fragmentView
                && View.GONE != fragmentView.getVisibility()) {
            fragmentView.startAnimation(ANIM_RIGHT_OUT);
            fragmentView.setVisibility(View.GONE);

        }//from  ww  w .j av  a 2  s.c om
    }
}

Related Tutorials