当前位置: 首页>>代码示例>>Java>>正文


Java SupportAnimator.setStartDelay方法代码示例

本文整理汇总了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();
}
 
开发者ID:morogoku,项目名称:MTweaks-KernelAdiutorMOD,代码行数:18,代码来源:NavHeaderView.java

示例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;
}
 
开发者ID:SebastianRask,项目名称:Pocket-Plays-for-Twitch,代码行数:71,代码来源:NotificationActivity.java


注:本文中的io.codetail.animation.SupportAnimator.setStartDelay方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。