Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import android.view.animation.Animation;

import android.view.animation.ScaleAnimation;

public class Main {
    public static Animation getScaleAnimation(float fromX, float toX, float fromY, float toY, int millisSecond) {
        Animation animation = new ScaleAnimation(fromX, toX, fromY, toY);
        animation.setDuration(millisSecond);
        return animation;
    }
}