Class ViewAnimationFactory<R>

java.lang.Object
com.bumptech.glide.request.transition.ViewAnimationFactory<R>
Type Parameters:
R - The type of the resource that will be transitioned into a view.
All Implemented Interfaces:
TransitionFactory<R>

public class ViewAnimationFactory<R> extends Object implements TransitionFactory<R>
  • Constructor Details

    • ViewAnimationFactory

      public ViewAnimationFactory(Animation animation)
    • ViewAnimationFactory

      public ViewAnimationFactory(int animationId)
  • Method Details

    • 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.