Class ViewAnimationFactory<R>

    • Constructor Detail

      • ViewAnimationFactory

        public ViewAnimationFactory​(android.view.animation.Animation animation)
      • ViewAnimationFactory

        public ViewAnimationFactory​(int animationId)
    • Method Detail

      • build

        public Transition<R> build​(DataSource dataSource,
                                   boolean isFirstResource)
        Returns a new Transition for the given arguments. If isFromMemoryCache is true or isFirstImage is false, returns a NoTransition and otherwise returns a new ViewTransition.
        Specified by:
        build in interface TransitionFactory<R>
        Parameters:
        dataSource - The DataSource the resource was loaded from.
        isFirstResource - True if this is the first resource to be loaded into the target.