translation Right ObjectAnimator - Android android.animation

Android examples for android.animation:ObjectAnimator

Description

translation Right ObjectAnimator

Demo Code


//package com.java2s;

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

public class Main {
    public static ObjectAnimator translationRight(View v, float x) {
        return ObjectAnimator.ofFloat(v, "translationX", 0, x);
    }//from   ww w  .  ja v  a 2s . co  m
}

Related Tutorials