Class ViewPropertyTransition<R>

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

public class ViewPropertyTransition<R> extends Object implements Transition<R>
A Transition that accepts an interface that can apply an animation like a ViewPropertyAnimator or a ObjectAnimator that can be used to transition a resource into a View.
  • Constructor Details

  • Method Details

    • transition

      public boolean transition(R current, Transition.ViewAdapter adapter)
      Always applies the ViewPropertyTransition.Animator given in the constructor to the given view and returns false because the animator cannot put the new resource on the view.
      Specified by:
      transition in interface Transition<R>
      Parameters:
      current - The new resource that will be displayed in the view.
      adapter - The Transition.ViewAdapter wrapping a view that can at least return an View from Transition.ViewAdapter.getView().
      Returns:
      True if in the process of running the transition, the new resource was put on the view, false if the caller needs to manually put the current resource on the view.