Package 

Class DrawableCrossFadeFactory

  • All Implemented Interfaces:
    com.mobwith.imgmodule.request.transition.TransitionFactory

    
    public class DrawableCrossFadeFactory
     implements TransitionFactory<Drawable>
                        

    A factory class that produces a new Transition that varies depending on whether or not the drawable was loaded from the memory cache and whether or not the drawable is the first image to be put on the target.

    Resources are usually loaded from the memory cache just before the user can see the view, for example when the user changes screens or scrolls back and forth in a list. In those cases the user typically does not expect to see a transition. As a result, when the resource is loaded from the memory cache this factory produces an NoTransition.

    • Method Summary

      Modifier and Type Method Description
      Transition<Drawable> build(DataSource dataSource, boolean isFirstResource) Returns a new Transition.
      • Methods inherited from class com.mobwith.imgmodule.request.transition.TransitionFactory

        build
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait