Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import android.view.animation.ScaleAnimation;

public class Main {

    public static ScaleAnimation getScaleAnimation(float fromx, float tox, float fromy, float toy, long time) {
        ScaleAnimation scaleAnimation = new ScaleAnimation(fromx, tox, fromy, toy);
        scaleAnimation.setDuration(time);
        return scaleAnimation;
    }
}