of Property Values Holder and ObjectAnimator - Android android.animation

Android examples for android.animation:ObjectAnimator

Description

of Property Values Holder and ObjectAnimator

Demo Code


//package com.java2s;

import android.animation.ObjectAnimator;
import android.animation.PropertyValuesHolder;

public class Main {
    public static ObjectAnimator ofPropertyValuesHolder(Object target,
            PropertyValuesHolder... values) {
        ObjectAnimator anim = new ObjectAnimator();
        anim.setTarget(target);//from w w w  .  java2 s .  c  o m
        anim.setValues(values);
        return anim;
    }
}

Related Tutorials