Animation by translate Y - Android android.view.animation

Android examples for android.view.animation:Translate Animation

Description

Animation by translate Y

Demo Code

import android.view.View;

public class Main{

    public static void translateY(View view, int transY, int duration,
            int startDelay) {
        view.animate().translationY(transY).setDuration(duration)
                .setStartDelay(startDelay);
    }//from   w  ww .  j  av a 2s  .c o m

}

Related Tutorials