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

public class Main {
    public static void showViewSlide(View view) {
        if (view.getTag() == null)
            view.setTag(true);

        boolean isVisible = (boolean) view.getTag();
        if (!isVisible) {
            view.setTag(true);
            view.animate().translationY(0).setDuration(200).setInterpolator(new AccelerateInterpolator()).start();
        }
    }
}