Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
//License from project: Apache License 

import android.view.View;

import android.view.animation.ScaleAnimation;

public class Main {
    public static void updateAnimation(final View v) {
        final ScaleAnimation scaleInAnimation = new ScaleAnimation(v.getX(), v.getX() + 1, v.getY(), v.getY() + 1,
                v.getPivotX(), v.getPivotY());
        scaleInAnimation.setDuration(200);
        scaleInAnimation.setFillAfter(false);
        v.startAnimation(scaleInAnimation);
    }
}