@Test public void applyStaggeredTransitionParams_setsPassedViewId_asTarget() { StaggeredAnimationGroup spiedGroup = prepareSpiedGroup(); Transition testTransition = new Fade(); int testIndexInStaggeredTransition = 0; int viewId = 12345; Transition resultTransition = spiedGroup.applyStaggeredTransitionParams(testTransition, viewId, testIndexInStaggeredTransition); List<Integer> targetIds = resultTransition.getTargetIds(); assertThat(targetIds).hasSize(1); assertThat(targetIds.get(0)).isEqualTo(viewId); }
@VisibleForTesting final Transition applyStaggeredTransitionParams(Transition partialTransition, int viewId, int indexInTransition) { partialTransition.setStartDelay(indexInTransition * partialDelay); partialTransition.addTarget(viewId); return partialTransition; }
StaggeredAnimationGroup extends Group { @VisibleForTesting final Transition applyStaggeredTransitionParams(Transition partialTransition, int viewId, int indexInTransition) { partialTransition.setStartDelay(indexInTransition * partialDelay); partialTransition.addTarget(viewId); return partialTransition; } }
StaggeredAnimationGroup extends Group { @VisibleForTesting final Transition applyStaggeredTransitionParams(Transition partialTransition, int viewId, int indexInTransition) { partialTransition.setStartDelay(indexInTransition * partialDelay); partialTransition.addTarget(viewId); return partialTransition; } StaggeredAnimationGroup(Context context);  StaggeredAnimationGroup(Context context, AttributeSet attrs);  StaggeredAnimationGroup(Context context, AttributeSet attrs, int defStyleAttr); }
StaggeredAnimationGroup extends Group { @VisibleForTesting final Transition applyStaggeredTransitionParams(Transition partialTransition, int viewId, int indexInTransition) { partialTransition.setStartDelay(indexInTransition * partialDelay); partialTransition.addTarget(viewId); return partialTransition; } StaggeredAnimationGroup(Context context);  StaggeredAnimationGroup(Context context, AttributeSet attrs);  StaggeredAnimationGroup(Context context, AttributeSet attrs, int defStyleAttr); final void show(); final void show(boolean inReversedOrder); final void hide(); final void hide(boolean inReversedOrder); final void setPartialTransitionFactory(@NonNull PartialTransitionFactory factory); final void clearPartialTransitionFactory(); final void setOnTransitionPreparedListener(@NonNull OnTransitionPreparedListener listener); final void clearOnTransitionPreparedListener(); final void setPartialDuration(int partialDuration); final void setPartialDelay(int partialDelay); final void setPartialInterpolator(TimeInterpolator partialInterpolator); }
StaggeredAnimationGroup extends Group { @VisibleForTesting final Transition applyStaggeredTransitionParams(Transition partialTransition, int viewId, int indexInTransition) { partialTransition.setStartDelay(indexInTransition * partialDelay); partialTransition.addTarget(viewId); return partialTransition; } StaggeredAnimationGroup(Context context);  StaggeredAnimationGroup(Context context, AttributeSet attrs);  StaggeredAnimationGroup(Context context, AttributeSet attrs, int defStyleAttr); final void show(); final void show(boolean inReversedOrder); final void hide(); final void hide(boolean inReversedOrder); final void setPartialTransitionFactory(@NonNull PartialTransitionFactory factory); final void clearPartialTransitionFactory(); final void setOnTransitionPreparedListener(@NonNull OnTransitionPreparedListener listener); final void clearOnTransitionPreparedListener(); final void setPartialDuration(int partialDuration); final void setPartialDelay(int partialDelay); final void setPartialInterpolator(TimeInterpolator partialInterpolator);  }