com.nineoldandroids.view.animation
Class AnimatorProxy
java.lang.Object
Animation
com.nineoldandroids.view.animation.AnimatorProxy
public final class AnimatorProxy
- extends Animation
A proxy class to allow for modifying post-3.0 view properties on all pre-3.0
platforms. DO NOT wrap your views with this class if you
are using ObjectAnimator
as it will handle that itself.
Field Summary |
static boolean |
NEEDS_PROXY
Whether or not the current running platform needs to be proxied. |
NEEDS_PROXY
public static final boolean NEEDS_PROXY
- Whether or not the current running platform needs to be proxied.
wrap
public static AnimatorProxy wrap(View view)
- Create a proxy to allow for modifying post-3.0 view properties on all
pre-3.0 platforms. DO NOT wrap your views if you are
using
ObjectAnimator
as it will handle that itself.
- Parameters:
view
- View to wrap.
- Returns:
- Proxy to post-3.0 properties.
getAlpha
public float getAlpha()
setAlpha
public void setAlpha(float alpha)
getPivotX
public float getPivotX()
setPivotX
public void setPivotX(float pivotX)
getPivotY
public float getPivotY()
setPivotY
public void setPivotY(float pivotY)
getRotation
public float getRotation()
setRotation
public void setRotation(float rotation)
getRotationX
public float getRotationX()
setRotationX
public void setRotationX(float rotationX)
getRotationY
public float getRotationY()
setRotationY
public void setRotationY(float rotationY)
getScaleX
public float getScaleX()
setScaleX
public void setScaleX(float scaleX)
getScaleY
public float getScaleY()
setScaleY
public void setScaleY(float scaleY)
getScrollX
public int getScrollX()
setScrollX
public void setScrollX(int value)
getScrollY
public int getScrollY()
setScrollY
public void setScrollY(int value)
getTranslationX
public float getTranslationX()
setTranslationX
public void setTranslationX(float translationX)
getTranslationY
public float getTranslationY()
setTranslationY
public void setTranslationY(float translationY)
getX
public float getX()
setX
public void setX(float x)
getY
public float getY()
setY
public void setY(float y)