Class ViewTransition<R>

  • Type Parameters:
    R - The type of the resource that will be transitioned into a view.
    All Implemented Interfaces:
    Transition<R>

    public class ViewTransition<R>
    extends java.lang.Object
    implements Transition<R>
    A Transition that can apply a Animation to a View using View.startAnimation(android.view.animation.Animation).
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean transition​(R current, Transition.ViewAdapter adapter)
      Always clears the current animation on the view using View.clearAnimation(), then starts the Animation given in the constructor using View.startAnimation(android.view.animation.Animation) and then returns false because the animation does not actually put the current resource on the view.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • transition

        public boolean transition​(R current,
                                  Transition.ViewAdapter adapter)
        Always clears the current animation on the view using View.clearAnimation(), then starts the Animation given in the constructor using View.startAnimation(android.view.animation.Animation) and then returns false because the animation does not actually put the current 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.