/**
* Constructor to use when building a TranslateAnimation from code
*
* @param viewToAnimate View on which translate animation will be performed
* @param fromXDelta Change in X coordinate to apply at the start of the
* animation
* @param toXDelta Change in X coordinate to apply at the end of the
* animation
* @param fromYDelta Change in Y coordinate to apply at the start of the
* animation
* @param toYDelta Change in Y coordinate to apply at the end of the
* animation
* @param duration Duration in milliseconds.
* @param startOffSet When this Animation should start, in milliseconds from
* the start time of the root AnimationSet.
* @param interpolator Sets the acceleration curve for this animation.
*/
public TranslateAnimationHelper(@NonNull View viewToAnimate, float fromXDelta, float toXDelta, float fromYDelta, float toYDelta, long duration, long startOffSet, BaseInterpolator interpolator){
init(viewToAnimate, fromXDelta, toXDelta, fromYDelta, toYDelta, duration, startOffSet, interpolator);
doTranslateAnimation();
}
TranslateAnimationHelper.java 文件源码
java
阅读 37
收藏 0
点赞 0
评论 0
项目:LoginArt
作者:
评论列表
文章目录