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

public class Main {
    public static void translationYBy(View view, int distance, int duration, int startDelay) {
        view.animate().translationYBy(distance).setDuration(duration).setStartDelay(startDelay)
                .setInterpolator(new DecelerateInterpolator());

    }
}