當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。