translation Left ObjectAnimator - Android android.animation

Android examples for android.animation:ObjectAnimator

Description

translation Left ObjectAnimator

Demo Code


//package com.java2s;

import android.animation.ObjectAnimator;
import android.view.View;

public class Main {
    public static ObjectAnimator translationLeft(View v, float x) {
        return ObjectAnimator.ofFloat(v, "translationX", x, 0);
    }/*from w w w.j  a v  a 2  s .  c  o m*/
}

Related Tutorials