translate View along Y axes with delay - Android User Interface

Android examples for User Interface:View Translate

Description

translate View along Y axes with delay

Demo Code


//package com.java2s;
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 w w.ja  v  a2  s. c o  m*/
}

Related Tutorials