Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
//License from project: Apache License 

import android.animation.AnimatorListenerAdapter;
import android.view.View;

import android.view.animation.DecelerateInterpolator;

public class Main {
    public static void show(View view) {
        if (view != null) {
            view.animate().translationY(0).setInterpolator(new DecelerateInterpolator(2)).start();
        }
    }

    public static void show(View view, AnimatorListenerAdapter listener) {
        if (view != null) {
            view.animate().translationY(0).setInterpolator(new DecelerateInterpolator(2)).setListener(listener)
                    .start();
        }
    }
}