translation X PropertyValuesHolder - Android android.animation

Android examples for android.animation:PropertyValuesHolder

Description

translation X PropertyValuesHolder

Demo Code


//package com.java2s;
import android.animation.PropertyValuesHolder;

public class Main {
    public static final String TRANSLATION_X = "translationX";

    public static PropertyValuesHolder translationX(float... values) {
        return PropertyValuesHolder.ofFloat(TRANSLATION_X, values);
    }/*from   w  ww  . j a  va  2  s .  c o  m*/
}

Related Tutorials