Java tutorial
//package com.java2s; //License from project: Apache License import android.animation.Animator; import android.animation.ObjectAnimator; import android.animation.PropertyValuesHolder; import android.view.View; public class Main { public static Animator animSlideIn(int i1, View view) { float af[] = new float[2]; af[0] = i1; af[1] = 0.0F; return ObjectAnimator.ofPropertyValuesHolder(view, new PropertyValuesHolder[] { PropertyValuesHolder.ofFloat("translationY", af), PropertyValuesHolder.ofFloat("alpha", new float[] { 0.3F, 1.0F }) }); } }