slide Out Up - Android Animation

Android examples for Animation:Slide Animation

Description

slide Out Up

Demo Code


//package com.java2s;

import android.view.View;

import android.view.animation.AccelerateDecelerateInterpolator;

public class Main {
    public final static int ANIMATION_DURATION = 300;

    public static void slideOutUp(View v) {
        v.animate().setInterpolator(new AccelerateDecelerateInterpolator())
                .setDuration(ANIMATION_DURATION)
                .translationY(-v.getMeasuredHeight()).start();
    }/* ww  w  .  j a v  a 2 s  .c om*/
}

Related Tutorials