本文整理匯總了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;
}