translate view Init - Android User Interface

Android examples for User Interface:View Translate

Description

translate view Init

Demo Code


//package com.java2s;
import android.view.View;

public class Main {

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

Related Tutorials