RelativeLayout view Show Animation - Android Animation

Android examples for Animation:Animation to Show

Description

RelativeLayout view Show Animation

Demo Code


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

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

        RotateAnimation animation = new RotateAnimation(180, 360,
                view.getWidth() / 2, view.getHeight());
        animation.setDuration(300);//from   ww  w. j  a  v a 2  s  . c  o m
        animation.setFillAfter(true);
        view.startAnimation(animation);

    }
}

Related Tutorials