Lines Matching refs:animator

39  * An stack state animator which handles animations to new StackScrollStates
408 // we need to increase all animation keyframes of the previous animator by the
425 ValueAnimator animator = ValueAnimator.ofFloat(child.getShadowAlpha(), newEndValue);
426 animator.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() {
432 animator.setInterpolator(Interpolators.FAST_OUT_SLOW_IN);
434 animator.setDuration(newDuration);
437 animator.setStartDelay(delay);
439 animator.addListener(getGlobalAnimationFinishedListener());
441 animator.addListener(new AnimatorListenerAdapter() {
449 startAnimator(animator);
450 child.setTag(TAG_ANIMATOR_SHADOW_ALPHA, animator);
467 // we need to increase all animation keyframes of the previous animator by the
484 ValueAnimator animator = ValueAnimator.ofInt(child.getActualHeight(), newEndValue);
485 animator.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() {
492 animator.setInterpolator(Interpolators.FAST_OUT_SLOW_IN);
494 animator.setDuration(newDuration);
497 animator.setStartDelay(delay);
499 animator.addListener(getGlobalAnimationFinishedListener());
501 animator.addListener(new AnimatorListenerAdapter() {
526 startAnimator(animator);
527 child.setTag(TAG_ANIMATOR_HEIGHT, animator);
545 // we need to increase all animation keyframes of the previous animator by the
562 ValueAnimator animator = ValueAnimator.ofInt(child.getClipTopAmount(), newEndValue);
563 animator.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() {
569 animator.setInterpolator(Interpolators.FAST_OUT_SLOW_IN);
571 animator.setDuration(newDuration);
574 animator.setStartDelay(delay);
576 animator.addListener(getGlobalAnimationFinishedListener());
578 animator.addListener(new AnimatorListenerAdapter() {
586 startAnimator(animator);
587 child.setTag(TAG_ANIMATOR_TOP_INSET, animator);
604 // we need to increase all animation keyframes of the previous animator by the
623 ObjectAnimator animator = ObjectAnimator.ofFloat(child, View.ALPHA,
625 animator.setInterpolator(Interpolators.FAST_OUT_SLOW_IN);
628 animator.addListener(new AnimatorListenerAdapter() {
654 animator.setDuration(newDuration);
657 animator.setStartDelay(delay);
659 animator.addListener(getGlobalAnimationFinishedListener());
661 startAnimator(animator);
662 child.setTag(TAG_ANIMATOR_ALPHA, animator);
679 // we need to increase all animation keyframes of the previous animator by the
695 ObjectAnimator animator = ObjectAnimator.ofFloat(child, View.TRANSLATION_Z,
697 animator.setInterpolator(Interpolators.FAST_OUT_SLOW_IN);
699 animator.setDuration(newDuration);
702 animator.setStartDelay(delay);
704 animator.addListener(getGlobalAnimationFinishedListener());
706 animator.addListener(new AnimatorListenerAdapter() {
714 startAnimator(animator);
715 child.setTag(TAG_ANIMATOR_TRANSLATION_Z, animator);
732 // we need to increase all animation keyframes of the previous animator by the
749 ObjectAnimator animator = ObjectAnimator.ofFloat(child, View.TRANSLATION_Y,
753 animator.setInterpolator(interpolator);
755 animator.setDuration(newDuration);
758 animator.setStartDelay(delay);
760 animator.addListener(getGlobalAnimationFinishedListener());
763 animator.addListener(new AnimatorListenerAdapter() {
775 startAnimator(animator);
776 child.setTag(TAG_ANIMATOR_TRANSLATION_Y, animator);
781 private void startAnimator(ValueAnimator animator) {
782 mAnimatorSet.add(animator);
783 animator.start();
825 * Cancel the previous animator and get the duration of the new animation.
828 * @param previousAnimator the animator which was running before
835 // the previous animator, whichever is longer.