android.animation
Class ValueAnimator
java.lang.Object
android.animation.Animator
android.animation.ValueAnimator
- All Implemented Interfaces:
- Cloneable
- Direct Known Subclasses:
- ObjectAnimator
public class ValueAnimator
- extends Animator
RESTART
public static final int RESTART
- See Also:
- Constant Field Values
REVERSE
public static final int REVERSE
- See Also:
- Constant Field Values
INFINITE
public static final int INFINITE
- See Also:
- Constant Field Values
ValueAnimator
public ValueAnimator()
ofInt
public static ValueAnimator ofInt(int... values)
ofFloat
public static ValueAnimator ofFloat(float... values)
ofPropertyValuesHolder
public static ValueAnimator ofPropertyValuesHolder(PropertyValuesHolder... values)
ofObject
public static ValueAnimator ofObject(TypeEvaluator evaluator,
Object... values)
setIntValues
public void setIntValues(int... values)
setFloatValues
public void setFloatValues(float... values)
setObjectValues
public void setObjectValues(Object... values)
setValues
public void setValues(PropertyValuesHolder... values)
getValues
public PropertyValuesHolder[] getValues()
setDuration
public ValueAnimator setDuration(long duration)
- Specified by:
setDuration
in class Animator
getDuration
public long getDuration()
- Specified by:
getDuration
in class Animator
setCurrentPlayTime
public void setCurrentPlayTime(long playTime)
getCurrentPlayTime
public long getCurrentPlayTime()
getStartDelay
public long getStartDelay()
- Specified by:
getStartDelay
in class Animator
setStartDelay
public void setStartDelay(long startDelay)
- Specified by:
setStartDelay
in class Animator
getFrameDelay
public static long getFrameDelay()
setFrameDelay
public static void setFrameDelay(long frameDelay)
getAnimatedValue
public Object getAnimatedValue()
getAnimatedValue
public Object getAnimatedValue(String propertyName)
setRepeatCount
public void setRepeatCount(int value)
getRepeatCount
public int getRepeatCount()
setRepeatMode
public void setRepeatMode(int value)
getRepeatMode
public int getRepeatMode()
addUpdateListener
public void addUpdateListener(ValueAnimator.AnimatorUpdateListener listener)
removeAllUpdateListeners
public void removeAllUpdateListeners()
removeUpdateListener
public void removeUpdateListener(ValueAnimator.AnimatorUpdateListener listener)
setInterpolator
public void setInterpolator(TimeInterpolator value)
- Specified by:
setInterpolator
in class Animator
getInterpolator
public TimeInterpolator getInterpolator()
setEvaluator
public void setEvaluator(TypeEvaluator value)
start
public void start()
- Overrides:
start
in class Animator
cancel
public void cancel()
- Overrides:
cancel
in class Animator
end
public void end()
- Overrides:
end
in class Animator
isRunning
public boolean isRunning()
- Specified by:
isRunning
in class Animator
isStarted
public boolean isStarted()
- Overrides:
isStarted
in class Animator
reverse
public void reverse()
getAnimatedFraction
public float getAnimatedFraction()
clone
public ValueAnimator clone()
- Overrides:
clone
in class Animator
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2008-2012. All Rights Reserved.