View translate Settings - Android android.view.animation

Android examples for android.view.animation:Translate Animation

Description

View translate Settings

Demo Code

import android.view.View;

public class Main{

    public static void transInit(View view, int transX, int transY) {
        view.animate().translationX(transX).translationY(transY);
    }//from   w ww  .ja  v a 2  s .c  o  m

}

Related Tutorials