Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import android.view.View;

import android.view.animation.Animation;

import android.view.animation.ScaleAnimation;

public class Main {

    public static void toBigAnim2(View view) {
        ScaleAnimation animation = new ScaleAnimation(0.0f, 1.0f, 0.0f, 1.0f, Animation.RELATIVE_TO_SELF, 0.5f,
                Animation.RELATIVE_TO_SELF, 0.0f);
        animation.setDuration(1000);
        animation.setFillAfter(false);
        view.setAnimation(animation);
        animation.start();
    }
}