Java tutorial
//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(); } } }