RelativeLayout view Hide Animation - Android Animation

Android examples for Animation:Animation to Hide

Description

RelativeLayout view Hide Animation

Demo Code


//package com.java2s;
import android.view.animation.RotateAnimation;
import android.widget.RelativeLayout;

public class Main {
    public static void viewHide(RelativeLayout view) {

        RotateAnimation animation = new RotateAnimation(0, 180,
                view.getWidth() / 2, view.getHeight());
        animation.setDuration(300); /* w  w w  . j av a 2s. c om*/
        animation.setFillAfter(true); 
        view.startAnimation(animation); 

    }
}

Related Tutorials