Animation by translate X - Android android.view.animation

Android examples for android.view.animation:Translate Animation

Description

Animation by translate X

Demo Code

import android.view.View;

public class Main{

    public static void translateX(View view, int transX, int duration,
            int startDelay) {
        view.animate().translationX(transX).setDuration(duration)
                .setStartDelay(startDelay);
    }// ww  w.  java2s.  c o m

}

Related Tutorials