Package 

Interface Transition


  • 
    public interface Transition<R>
    
                        

    An interface that allows a transition to be applied to Views in s in across resource types. Targets that wrap views will be able to provide all of the necessary arguments and start the transition. Those that do not will be unable to provide the necessary arguments and will therefore be forced to ignore the transition. This interface is a compromise that allows view specific transition in ImageModule complex world of arbitrary resource types and arbitrary target types.

    • Method Summary

      Modifier and Type Method Description
      abstract boolean transition(R current, Transition.ViewAdapter adapter) Animates from the previous Drawable that is currently beingdisplayed in the given view, if not null, to the new resource that should be displayed in theview.
      • Methods inherited from class java.lang.Object

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

      • transition

         abstract boolean transition(R current, Transition.ViewAdapter adapter)

        Animates from the previous Drawable that is currently beingdisplayed in the given view, if not null, to the new resource that should be displayed in theview.

        Parameters:
        current - The new resource that will be displayed in the view.
        adapter - The ViewAdapter wrapping a view that can at least return anView from getView.