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.AnimationSet;
import android.view.animation.ScaleAnimation;

public class Main {

    public static void setButtonEffect(View view) {
        AnimationSet animationSet = new AnimationSet(true);
        ScaleAnimation scaleAnimation = new ScaleAnimation(1.02f, 1.01f, 1.02f, 1.01f);
        scaleAnimation.setDuration(300);
        animationSet.addAnimation(scaleAnimation);
        view.startAnimation(animationSet);
    }
}