Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
import android.view.animation.*;
import android.widget.ImageView;

public class Main {
    public static void twoPoint(ImageView imageview, float f, float f1, int i, int j) {
        TranslateAnimation translateanimation = new TranslateAnimation(0.0F, f, 0.0F, f1);
        translateanimation.setFillAfter(true);
        translateanimation.setDuration(j);
        imageview.startAnimation(translateanimation);
    }
}