本文整理汇总了Java中io.codetail.animation.SupportAnimator.setStartDelay方法的典型用法代码示例。如果您正苦于以下问题:Java SupportAnimator.setStartDelay方法的具体用法?Java SupportAnimator.setStartDelay怎么用?Java SupportAnimator.setStartDelay使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类io.codetail.animation.SupportAnimator
的用法示例。
在下文中一共展示了SupportAnimator.setStartDelay方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: animateBg
import io.codetail.animation.SupportAnimator; //导入方法依赖的package包/类
public void animateBg() {
mImage.setVisibility(INVISIBLE);
int cx = mImage.getWidth();
int cy = mImage.getHeight();
SupportAnimator animator = ViewAnimationUtils.createCircularReveal(mImage, cx, cy, 0, Math.max(cx, cy));
animator.addListener(new SupportAnimator.SimpleAnimatorListener() {
@Override
public void onAnimationStart() {
super.onAnimationStart();
mImage.setVisibility(VISIBLE);
}
});
animator.setStartDelay(500);
animator.start();
}
示例2: showReverseTransitionAnimation
import io.codetail.animation.SupportAnimator; //导入方法依赖的package包/类
private SupportAnimator showReverseTransitionAnimation() {
mTransitionViewBlue.setLayerType(View.LAYER_TYPE_HARDWARE, null);
mTransitionViewWhite.setLayerType(View.LAYER_TYPE_HARDWARE, null);
SupportAnimator blueReversed = transitionAnimationBlue.reverse();
blueReversed.setInterpolator(new AccelerateDecelerateInterpolator());
blueReversed.addListener(new SupportAnimator.AnimatorListener() {
@Override
public void onAnimationStart() {
mTransitionViewBlue.setVisibility(View.VISIBLE);
mTransitionViewBlue.bringToFront();
}
@Override
public void onAnimationEnd() {
Service.bringToBack(mTransitionViewBlue);
mTransitionViewBlue.setVisibility(View.INVISIBLE);
}
@Override
public void onAnimationCancel() {
}
@Override
public void onAnimationRepeat() {
}
});
blueReversed.setDuration(REVEAL_ANIMATION_DURATION);
blueReversed.start();
final SupportAnimator whiteReversed = transitionAnimationWhite.reverse();
whiteReversed.setInterpolator(new AccelerateDecelerateInterpolator());
whiteReversed.addListener(new SupportAnimator.AnimatorListener() {
@Override
public void onAnimationStart() {
mTransitionViewWhite.setVisibility(View.VISIBLE);
mTransitionViewWhite.bringToFront();
}
@Override
public void onAnimationEnd() {
Service.bringToBack(mTransitionViewWhite);
mTransitionViewBlue.setLayerType(View.LAYER_TYPE_NONE, null);
mTransitionViewWhite.setLayerType(View.LAYER_TYPE_NONE, null);
mTransitionViewWhite.setVisibility(View.INVISIBLE);
mContinueFABContainer.setClickable(true);
mContinueIcon.bringToFront();
mContinueIcon.setVisibility(View.VISIBLE);
showContinueIconAnimations(360);
}
@Override
public void onAnimationCancel() {
}
@Override
public void onAnimationRepeat() {
}
});
whiteReversed.setDuration(REVEAL_ANIMATION_DURATION);
whiteReversed.setStartDelay(REVEAL_ANIMATION_DELAY);
whiteReversed.start();
return whiteReversed;
}