TranslateAnimation

Class of android.view.animation · TranslateAnimation.java · Android's reference

public class TranslateAnimation extends Animation

TranslateAnimation ← Animation

An animation of the position of a view.

Constructors

public TranslateAnimation(Context context, AttributeSet attrs) source
public TranslateAnimation(float fromXDelta, float toXDelta, float fromYDelta, float toYDelta) source
public TranslateAnimation(int fromXType, float fromXValue, int toXType, float toXValue, int fromYType, float fromYValue, int toYType, float toYValue) source

Methods

public void initialize(int width, int height, int parentWidth, int parentHeight) source
protected void applyTransformation(float interpolatedTime, Transformation t) source
public boolean willChangeBounds() source

Made from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.