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.TranslateAnimation;

public class Main {
    public static void againStartMyAnimation(long fromx, long tox, long fromy, long toy, View t, boolean f) {
        if (f) {
            Animation animation = new TranslateAnimation(fromx, tox, fromy, toy);
            animation.setDuration(1000);
            animation.setFillAfter(true);
            t.startAnimation(animation);
        }
    }
}