Class BitmapTransitionFactory

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected android.graphics.Bitmap getBitmap​(android.graphics.Bitmap current)
      Retrieve the Bitmap from a composite object.
      • Methods inherited from class java.lang.Object

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

      • BitmapTransitionFactory

        public BitmapTransitionFactory​(@NonNull
                                       TransitionFactory<android.graphics.drawable.Drawable> realFactory)
    • Method Detail

      • getBitmap

        @NonNull
        protected android.graphics.Bitmap getBitmap​(@NonNull
                                                    android.graphics.Bitmap current)
        Description copied from class: BitmapContainerTransitionFactory
        Retrieve the Bitmap from a composite object.

        Warning: Do not convert any arbitrary object to Bitmap via expensive drawing here, this method is called on the UI thread.

        Specified by:
        getBitmap in class BitmapContainerTransitionFactory<android.graphics.Bitmap>
        Parameters:
        current - composite object containing a Bitmap and some other information
        Returns:
        the Bitmap contained within current