Java tutorial
//package com.java2s; import android.view.animation.Animation; import android.view.animation.TranslateAnimation; public class Main { public static Animation slideDown() { Animation slideDown = new TranslateAnimation(TranslateAnimation.RELATIVE_TO_SELF, 0.0f, TranslateAnimation.RELATIVE_TO_SELF, 0.0f, TranslateAnimation.RELATIVE_TO_SELF, 0.0f, TranslateAnimation.RELATIVE_TO_SELF, 1.0f); slideDown.setDuration(600); return slideDown; } }