Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import android.animation.ObjectAnimator;

import android.view.View;

public class Main {
    public static void translationY(View view, float start, float end, int duration) {
        ObjectAnimator.ofFloat(view, "translationY", start, end).setDuration(duration).start();
    }
}